Hi!
The Linux man page for p7zip here says that p7zip is a command-line interface to 7z, so it can only really do what 7z can do. The 7z man page says that if you want to save/restore directory structures on Linux then you have to use something like 'tar' to do that bit, so you would pipe tar's output to p7zip/7z.
This should not be necessary. Like ZIP files, 7Z files can contain files and the directory structure in which they are arranged:
If you want to send files and directories (not the owner of file) to others Unix/MacOS/Windows users, you can use the 7-zip format. example : 7z a directory.7z directory Do not use "-r" because this flag does not do what you think.
The default meaning of that "a" command is to add everything in "directory" to "directory.7z". When you unpack the file again, using "7z x directory.7z", both files and directories will be unpacked. However, if you used "7z e directory.7z", *only* files would be unpacked, *ignoring* the archived directory structure. Interestingly, documentation does not explain -r at all, it just says that people should *not* use that option. Regards, Eric PS: "owner of the file" refers to files having ownership metadata in Linux, Windows and Mac OS. This is not relevant for DOS users. _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user