Menu

#902 Relative paths include/exlude bug

open
nobody
None
5
2012-12-07
2008-10-16
Anonymous
No

This is a great package.

This may not be a bug, so much as an undesirable feature with the way that we're using 7z. I have a large deep folder which I want to create several zips from. Each zip contains only a partial subset of all the files in the folder. I need relative paths on all the files.

I'm using the include/exclude lists functions, and would ideally like to define and maintain the zips from these lists, like this :
7z a -r -tzip -bd -ir@"Include.txt" -xr@"Exclude.txt" "%target%"

That looks great, but in reality I have to specify file sin the include list as root files, e.g.
c:\myroot\my_deep_file.txt

This file does not exist - it exists at a deeper level. If I specify the actual location, e.g.
c:\myroot\myfolder\somewhere\my_deep_file.txt

Then I no longer get the relative path included in the zip. This is a real headache.
The ability to have absolute control over the relative paths in the archive is high on my wish list.

Discussion


Log in to post a comment.