sam rm -R
Closed this issue · 2 comments
fabiencastan commented
> sam rm --first-image 376 --last-image 596 -R .
SAM ERROR - You cannot remove folders "." or "..".
> sam rm --first-image 376 --last-image 596 -R
usage: sam rm [-h] [-a] [-d] [-s] [-f] [-e EXPRESSION] [-R]
[--first-image FIRSTIMAGE] [--last-image LASTIMAGE]
[--range RANGE RANGE] [--detect-negative] [-v VERBOSE]
[--dry-run]
inputs [inputs ...]
sam rm: error: too few arguments
cchampet commented
This is the same behavior as the rm linux command:
rm -r .
rm: cannot remove directory: ‘.’
rm -r ..
rm: cannot remove directory: ‘..’
You would expect something different?
fabiencastan commented
Yes, I see the point, but with the options "-s" "-f" we can choose to only remove files or sequences.
And we have filtering options like first/last-image and expression which already makes it a bit different from rm.