You are not logged in.
I'd like to run something like
zstd -rz /path/to/big/files
and have it place the new compressed files in /path/to/small/files while maintaining directory structure. Is this possible?
Last edited by kev717 (2020-07-28 21:09:22)
If I code something, it's probably at https://github.com/kellcodes
Do **NOT** expect a response from me.
Offline
I don't think so. zstd has an option for an output target directory but it doesn't build subdirs but instead puts every compressed file in the same directory. Just loop through the files running zstd on each specifying the proper output location.
Last edited by Trilby (2020-07-29 11:58:56)
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Edit : Sorry - comprehension error
Last edited by waitnsea (2020-07-29 13:21:30)
Offline
Was that a question for me? I don't see any relevance of tar or the linked thread to this topic.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
I'd like to run something like
zstd -rz /path/to/big/files
and have it place the new compressed files in /path/to/small/files while maintaining directory structure. Is this possible?
`--output-dir-mirror DIR`
This functionality is only present in the development version of `zstd`.
Offline
Nice Cyan. The fact that this was a planned feature makes the current version man page entry make a lot more sense: --output-dir-flat just seemed like a very odd option name when there wasn't an alternative.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline