You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having accidentally removed some files in Manta (via improper editing of previous commands), I think it would be nice for the to optionally check that the file you are trying to remove from Manta is correct.
That is, I want something analogous to the behavior of rm -i:
$ ls
not-important.txt very-important.txt
$ rm -i very-important.txt
remove very-important.txt? n
$ rm -i not-important.txt
remove not-important.txt? y
$ ls
very-important.txt
The -i option for mrm is already claimed, so the confirmation option for mrm would need to be a different flag from rm.
The text was updated successfully, but these errors were encountered:
$ touch empty
$ for f in ~~/stor/test-object{1..5}; do mput -f empty "$f"; done
$ mls
test-object1
test-object2
test-object3
test-object4
test-object5
$ ./bin/mrm -I ~~/stor/test-object{1..5}
remove object `/dave/stor/test-object1` [y/N]?: n
remove object `/dave/stor/test-object2` [y/N]?:
remove object `/dave/stor/test-object3` [y/N]?: foo
remove object `/dave/stor/test-object4` [y/N]?: y
remove object `/dave/stor/test-object5` [y/N]?: nope
$ mls
test-object1
test-object2
test-object3
test-object5
Tests created for mrm and mrmdir
$ ./node_modules/.bin/nodeunit test/mrmdir.test.js
mrmdir.test.js
✔ setup: create test tree at /dave/stor/node-manta-test-mrmdir-01d47615
✔ mrmdir (no arguments)
✔ mrmdir -I fails without tty
✔ mrmdir 1 directory
✔ remove remaining directories
✔ ensure test tree is empty
✔ cleanup: rm test tree /dave/stor/node-manta-test-mrmdir-01d47615
OK: 11 assertions (18414ms)
$ ./node_modules/.bin/nodeunit test/mrm.test.js
mrm.test.js
✔ setup: create test tree at /dave/stor/node-manta-test-mrm-91cf20a6
✔ mrm (no arguments)
✔ mrm -I fails without tty
✔ mrm 1 directory
✔ remove remaining directories
✔ mrm 1 object
✔ remove remaining objects
✔ ensure test tree is empty
✔ cleanup: rm test tree /dave/stor/node-manta-test-mrm-91cf20a6
OK: 15 assertions (41372ms)
Having accidentally removed some files in Manta (via improper editing of previous commands), I think it would be nice for the to optionally check that the file you are trying to remove from Manta is correct.
That is, I want something analogous to the behavior of
rm -i
:The
-i
option formrm
is already claimed, so the confirmation option formrm
would need to be a different flag fromrm
.The text was updated successfully, but these errors were encountered: