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
shell-safe-rm can't deal with symbolic links pointing to directories, for example:
$ export SAFE_RM_DEBUG=1
$ cd /tmp/
$ mkdir test
$ ln -s test test_link
$ rm test_link
[D] file test_link
[D] 1 files or directory to process: test_link
[D] ls_result: test_link
[D] 216: test_link: is a directory
safe-rm: test_link: is a directory
[D] remove returned status: 1
[D] EXIT_CODE 1
The only way to delete a link to a directory is to pass -r parameter, unlike the standard rm will do:
$ rm -r test_link
[D] short option -r
[D] file test_link
[D] recursive : -r
[D] 1 files or directory to process: test_link
[D] ls_result: test_link
[D] trash test_link
[D] mv test_link to /home/developer/.local/share/Trash/files/test_link-2017-03-31_12:25:11-0
[D] 254: trash returned status 0
[D] remove returned status: 0
[D] EXIT_CODE 0
I think I've resolved this issue, I will submit a PR
The text was updated successfully, but these errors were encountered:
shell-safe-rm
can't deal with symbolic links pointing to directories, for example:The only way to delete a link to a directory is to pass
-r
parameter, unlike the standardrm
will do:I think I've resolved this issue, I will submit a PR
The text was updated successfully, but these errors were encountered: