Copy files/dir recreating empty parent tree at given level

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
redihokuto
Junior Member
Junior Member
Posts: 4
Joined: 2010-04-22, 15:53 UTC

Copy files/dir recreating empty parent tree at given level

Post by *redihokuto »

Hi,

There is an operation I run quite often.

I need to copy a selection of files/directories from one panel to the other and I would like to have on the target directory the same parent tree up to a selected level re-created (if not existing yet)
Example:
Source panel directory c:\document\myself\totalcommander\help\
Target panel directory d:\software
The source panel contains a selection of files/directories

When I press F5 I would like to have an option on the dialog to specify the number of parent directories of the source to be re-created inside the target directory. It would be great to move on the option quickly and by pressing a specific number or up/down, left/right change the depth.

In the example if the depth is 2 it means the files will be copied/moved into
d:\software\totalcommander\help\
Where totalcommander\help\ are created empty directories if not existing yet.

If the depth is 1 it means the files will be copied/moved into
d:\software\help\

If the depth is 0 (current behaviour) it means the files will be copied/moved into
d:\software\

I know there is a packer plugin to do the job but it's a bit cumbersome to use...

Thanks a lot for the valuable and precious TC!!!
Fabrizio.
Post Reply