Compress files via Branch while retaining folder paths
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 59
- Joined: 2006-07-06, 23:15 UTC
Compress files via Branch while retaining folder paths
I am looking to use the branch feature to look for all *.jpg files on the c: drive then to be able to compress the files via zip or another compression to another drive while keeping the paths and subfolders in tact on the destination side. The option to zip each file independatly or via folder would be very useful. This would be similar to the 'TreeCopyPlus' plugin but insetad of copying to another destination, I want to zip the files.
Re: Compress files via Branch while retaining folder paths
There are two solutions I can see, of which only the first does exactly what you want:margolis22 wrote:I am looking to use the branch feature to look for all *.jpg files on the c: drive then to be able to compress the files via zip or another compression to another drive while keeping the paths and subfolders in tact on the destination side. The option to zip each file independatly or via folder would be very useful. This would be similar to the 'TreeCopyPlus' plugin but insetad of copying to another destination, I want to zip the files.
1. Enable the branch view, or search for files and click Feed to Listbox.
Select all files, then pack them, selecting "Recursively pack subdirectories" in the Pack files dialog. The resulting single zip file will keep the folder structure.
2. Do as above, and in the Pack files dialog box select "Create separate archives, one per selected file". The option is self-explanatory - it will create as many zip files are there are source files. The difference is that:
a) it will not store folders in the individual zip files
b) as a result, if you have files by the same name but in different folders, you will be prompted to skip/overwrite/etc when the packer finds a duplicate filename, since it does not distinguish folders in this mode.
marek
No ads, no nags freeware: http://www.tranglos.com
(KeyNote, PhoneDeck, KookieJar, Oubliette)
(KeyNote, PhoneDeck, KookieJar, Oubliette)