Skip to content

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.

Notifications You must be signed in to change notification settings

ShellInjector/List-Directory-File-NamesV2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

List-Directory-File-NamesV2 (Completed/Working)

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:
cdmfolder


File Explorer, Looking at the Test Folder Main Directory:
explorerfolder


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.
wrong


Correct Parameters Attempt, Script Ran and Successful:
correct


File Explorer, Check that Output Text File is Created:
check1


Command Prompt/Text File, Check that the Output Text File is Correct:
check2

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

No packages published

Languages

  • Python 100.0%