Ticket #2092 (new enhancement)

Opened 14 years ago

Last modified 13 years ago

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:


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.


mc.menu.hardlink-example (1.1 KB) - added by Wiseman1024 14 years ago.

Change History

Changed 14 years ago by Wiseman1024

comment:1 Changed 14 years ago by gotar

  • Cc gotar@… added

comment:2 Changed 13 years ago by andrew_b

  • Version changed from version not selected to master
  • Branch state set to no branch
  • Milestone changed from 4.7 to Future Releases
Note: See TracTickets for help on using tickets.