Obtains all file names, folder names, suffixes, and filename Suffixes in a folder.
When I submitted github today, I suddenly felt that the submission was slow. I thought that github allowed to set the. gitignore file to ignore some extensions, so I decided to set up. gitimnore.
And so on .... I found that it is difficult to find out which suffix files exist in a large project or a messy file library. It is too slow to find a folder or folder, and error-prone.
And so on .... I started to knock on the Code and implemented the functions of getting all the file names, folder names, and suffix names in a folder.
[View results]
If you do not enter a parameter or enter "\" as the first parameter, the System Displays all three items in the current directory by default. Otherwise, the first parameter indicates the absolute path to be traversed:
The second parameter indicates the information you want to display (if not entered or 7 is displayed in full, 1 is to show only the suffix name, 2 is to show only the folder name, 3 is to show only the file name ):
File Uploaded to: http://download.csdn.net/download/yws_swy/9777441