sfk list -dir . -file .txt -sort
all txt files in all subdirectories will be listed. This is fine, but I'd like to have the output start with the subdirectories and not sort them together with the filenames of the current directory.
The above would print something like
I would prefer to first show all directories then all the files
similar to the DIR option /OG ("Directories first") in Windows.
Is there a way to do this? I tried it with chaining the list command to first show all directories and then list the files:
sfk list -justdirs -sort -dir . +list
but that simply displays all directory names, not the content of each directory.
you may try
sfk list -sort -dir . -file .txt +filter -+\ +select -sort -nosub -dir . -file .txt
or a bit shorter
sfk list -sort . .txt +filt -+\ +sel -sort -nosub . .txt
- the filter will strip all normal filenames not being in a sub folder, for the first output
- select (instead of list) starts a new command that does not reuse filenames from the previous
- option -nosub lists only the files in the current folder, for the second output
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.