This is a more complex script that creates a list of names for the every files/folder within the directory, this includes sub files/ sub folders, using recursion. Next, the script outputs the list to a text file. The name of the output text file is needed as a parameter. Created and Tested on Windows OS.
Note:
-Indent(s) and an arrow will be given to a sub file or folder. As the sub file or folder increase in depth from the main directory, another indent will be added on.
-Created and Tested on Windows OS.
Thanks to https://github.com/harmandersihra for testing and recommendations on enhancing performance.
--------------------Demonstration--------------------
Command Prompt, Looking at the Test Folder Main Directory:
File Explorer, Looking at the Test Folder Main Directory:
Incorrect Parameters Attempts, Error Message Given:
1."python ListDirFileNames.py" lacks the name of the output text file.
Note: Will also work with "ListDirFileNames.py output1.txt output2.txt" has one too many output text file paramters.
Correct Parameters Attempt, Script Ran and Successful:
File Explorer, Check that Output Text File is Created:
Command Prompt/Text File, Check that the Output Text File is Correct:
forked from Vincent-G-Van/List-All-File-Names-In-Directory
-
Notifications
You must be signed in to change notification settings - Fork 0
This is a more complex script that creates a list of names for the every files/folder within the directory, this includes sub files/ sub folders, using recursion. Next, the script outputs the list to a text file. The name of the output text file is needed as a parameter. Created and Tested on Windows OS.
ShellInjector/List-Directory-File-NamesV2
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
This is a more complex script that creates a list of names for the every files/folder within the directory, this includes sub files/ sub folders, using recursion. Next, the script outputs the list to a text file. The name of the output text file is needed as a parameter. Created and Tested on Windows OS.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 100.0%