ZArchive
ZArchive copied to clipboard
Symlink dirs cut from head of file tree
Platform: MacOS (and probably Linux?)
Weird one for you.
I'm using ZArchive to create WUAs in a Cemu-compatible format on the command line.
To achieve this, as you know, the top level directory needs to be $platform$titleid_v$version
To do this without creating any copies of the data during processing or disturbing the source directory structure, im grabbing info from the meta/meta.xml, creating a dir in the output folder, and symlinking the code/content/meta dir to that and then running ZA against it.
On production of the archive however, the titleid directory has been stripped from the tree entirely, and the tree begins from the level below, the concrete C/C/M directories.
I added spurious files at the same level of the titleid folder in the tree as a test but it didnt resolve it.
The only workaround without copying or disturbing the source folder structure was to create a real directory of the titleid, then recursively recreate the source tree using hardlinks to files and real directories.
cp -Rl /path/to/folder /out/000500001234568_v0
ZA then runs and creates the archive successfully.
Using cp and hardlinks performs adequately compared to just symlinking the top-level dir, but i still wanted to report this in case thats not the desired behaviour.