HansWessels / gup

the GUP source code (ARJ mode 7 and all the rest)
GNU General Public License v2.0
8 stars 2 forks source link

gup includes basedir (last part of, anyway) in archive -- that's unusual vs. 7zip, rar, et al #19

Open HansWessels opened 1 year ago

HansWessels commented 1 year ago

gup a test.arj test/corpus/* will assume a de facto basedir of test/: corpus is included as both a directory entry in the archive (file type: DIRECTORY) and is kept as part of the path of the files archives within corpus/.

Also Note

gup also lacks logic to derive a common basedir when fed something like

gup a test.arj dir1/ ../dir2/ /usr/dir3/

What is the common basedir here? That depends on the circumstances AFAIAC, but when pwd = /usr/me/ then the common basedir would sensibly /usr/ and the other paths should be relative paths towards that common base. ... or some such logic...

Currently, gup doesn't do any directory/path normalization, so this is an arena that's still wide open to development. 😉