If pathlist is given as @ARGV[0], how to get all the files present in that pathlist. For example: 1) C:\ - All Files in the root directory 2) C:\* - All files on entire volume. 3) C:\directoryname\ - All files in directoryname. 4) C:\directoryname\* - All files in directoryname and its subdirectories.
I got the following tool from user = blazar to get the files for the mentioned directory
but it gives everything in that directory as well as in subdirectories. Is there any way to mention depth ? What I mean is, if I give c:\temp, it should only show me the directories and files in that directory and not under the its subdirectories.