Is there currently any way to do a list command and exclude a directory. If not is this a feature that can be added??? I was able to grep the data I wanted but having it look through some huge directory it didn't need to is a waste of time/cpu.
Thanks very much..
I agree. That would be a good feature, exclusions.
This feature is part of SFK since SFK exists, and at first I thought that it's described in the help text -
but it isn't. Thanks for pointing that out. And now for the syntax:
SFK for Windows example:
sfk list -dir mydir !\tmp !\backup !\.svn -file .hpp .cpp .txt
lists all .hpp .cpp and .txt files from the directory tree "mydir", however excluding
all contained sub directories beginning with "tmp", "backup" or ".svn".
if you leave out the backslashes "\" then this will also exclude all subdirs
having "tmp" or "backup" in their name, or which end with extension ".svn".
SFK for Linux example:
sfk list -dir mydir :/tmp :/backup :/.svn -file .hpp .cpp .txt
does the same as above, but as ever use ":" instead of "!",
otherwise the linux shell will (mis)interpret the "!" character by itself.
That worked great!!! Thank you… :)
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.