Ticket #2092 (new enhancement)
Better hard link creation, support for directories
Reported by: | Wiseman1024 | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | Future Releases |
Component: | mc-core | Version: | master |
Keywords: | hardlink links linking | Cc: | gotar@… |
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description
The Midnight Commander hard linking feature (C-x C-l) could use some improvement. The working directory of the other panel should be offered as a default target, and if working on directories, Midnight Commandeer should behave like cp -Rl, recreating a similar directory structure in the destination directory which is then populated with hard links to the original files. (This is the behaviour of FAR Manager's Alt+F6.)
Hard links are an unfortunately often overlooked, misunderstood or just plain unknown feature of the file system. They have many uses, and the ability to create hard links and recreate directory structures is particularly useful for things such as preparing CD images or collections of directories and files which later need to be processed comfortably, without taking much disk space. This doesn't replace or is superseded by the ability to create copy-on-write files on filesystems that support it, of course.
I'll attach a portion of my mc.menu file which shows an example of this feature implemented as user commands. This requires dialog or whiptail to work.