diff options
author | Serge Broslavsky <serge.broslavsky@gmail.com> | 2012-02-14 11:55:18 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2012-02-14 12:50:37 +0100 |
commit | ec18cfafc2f85e4dbc4ab2d61588395a59352443 (patch) | |
tree | ee1d97287fba65e09453434484380c8a57cd59cf /ranger/defaults/rc.conf | |
parent | 824104ae627f276eee8ec88522c873a6b76c5ecc (diff) | |
download | ranger-ec18cfafc2f85e4dbc4ab2d61588395a59352443.tar.gz |
Feature: pasting hardlinked trees
This feature is useful when there is a need to create a directory tree, which is similar to an existing one while keeping all the files in this new tree hardlinked to those existing ones. Such functionality might be useful when rearranging a huge directory tree (or a set of directory trees) into some new layout. This operation is done synchronously (i.e. it doesn't use CommandLoader to put the ongoing operation into the task queue). Target end of the operation is handled the following way: 1. If target directory with the same name exists - it gets used. 2. If target folder does not exist - it is created with the same mode bits as corresponding source one. 3. If target file with the same name exists and is a hardlink of the source file already - it is getting left as it is. If it's not a hardlink of the source file - a new hardlink is created in a form of <original>_, <original>_1, ..., etc. 4. If target file does not exist - a hardlink is created.
Diffstat (limited to 'ranger/defaults/rc.conf')
-rw-r--r-- | ranger/defaults/rc.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ranger/defaults/rc.conf b/ranger/defaults/rc.conf index 1ecbc398..77ffa5c3 100644 --- a/ranger/defaults/rc.conf +++ b/ranger/defaults/rc.conf @@ -147,6 +147,7 @@ map po paste overwrite=True map pl paste_symlink relative=False map pL paste_symlink relative=True map phl paste_hardlink +map pht paste_hardlinked_subtree map dd cut map ud uncut |