sift icon indicating copy to clipboard operation
sift copied to clipboard

Issue with -x option on windows platform

Open smcclosr opened this issue 6 years ago • 1 comments

I have a simple file that is a listing of files in directories, and execute the following sift command:

sift -e " S" files.txt

And it executes as expected, but if I want it to parse the file for files that do not have this characteristic:

sift -x " S" files.txt

I get the following output:

Error: cannot open directory 'System Volume Information': open System Volume Information: Access is denied. Error: cannot open directory '$RECYCLE.BIN\S-1-5-21-3013154705-1247201519-249692682-1001': open $REC YCLE.BIN\S-1-5-21-3013154705-1247201519-249692682-1001: Access is denied. Error: cannot open directory '$RECYCLE.BIN\S-1-5-21-3013154705-1247201519-249692682-500': open $RECY CLE.BIN\S-1-5-21-3013154705-1247201519-249692682-500: Access is denied. Error: cannot open directory '$RECYCLE.BIN\S-1-5-21-4125897505-198583930-2741495343-1002': open $REC YCLE.BIN\S-1-5-21-4125897505-198583930-2741495343-1002: Access is denied. Error: cannot open directory '$RECYCLE.BIN\S-1-5-21-4125897505-198583930-2741495343-1005': open $REC YCLE.BIN\S-1-5-21-4125897505-198583930-2741495343-1005: Access is denied. Error: cannot open directory '$RECYCLE.BIN\S-1-5-21-4125897505-198583930-2741495343-1006': open $REC YCLE.BIN\S-1-5-21-4125897505-198583930-2741495343-1006: Access is denied. Error: cannot open directory '$RECYCLE.BIN\S-1-5-21-4125897505-198583930-2741495343-500': open $RECY CLE.BIN\S-1-5-21-4125897505-198583930-2741495343-500: Access is denied. Error: cannot open directory '$RECYCLE.BIN\S-1-5-21-431943334-496898601-208507308-1003': open $RECYC LE.BIN\S-1-5-21-431943334-496898601-208507308-1003: Access is denied.

smcclosr avatar Oct 05 '17 13:10 smcclosr

Those are protected system directories which cannot be accessed without changing ACLs etc.

Hrxn avatar Oct 06 '17 01:10 Hrxn