Ticket #3099 (new enhancement)
Delete dialog - follow links
Reported by: | ForeverYoung | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | Future Releases |
Component: | mc-core | Version: | master |
Keywords: | Cc: | gotar@… | |
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description
Suggestion is - add to Delete dialog a flag - "Follow links", as in Copy/Move? dialogs.
Use case: e.g. I have a collection of some videos, and I choose some one, symlink it to, for example, home dir, and when I finished watching it, I want to copy/move it somewhere or delete it, both symlink and original file.
For now I do that by this menu item:
+ t l D Follow symlink and delete file rm -i "`readlink %f`"
Note: See
TracTickets for help on using
tickets.
Nice but extremely dangerous. Why don't you actually move files instead of 'tagging' them with symlink? Perhaps they reside on different devices - create one directory per device then and symlink this to home.
This differs from copy/move operations that they simply dereference symlink, but here you would remove both, pointed file (symlink) and it's referenced node. There are reasons for this not being in 'rm' command as you already know (using readlink).