Given an mtree file foo.mtree:
#mtree baz/bar type=file content=quux
bsdtar -c --format=zip -f out.zip @foo.mtree
If you’re on Windows, “tar.exe” is bsdtar. With the caveat that the mtree file should be saved with LF line endings, this should still work.
Given an mtree file foo.mtree:
You can produce a ZIP containing baz/bar with: There’s a much better explanation in the bsdtar manual at https://man.freebsd.org/cgi/man.cgi?query=bsdtar&sektion=1&f...If you’re on Windows, “tar.exe” is bsdtar. With the caveat that the mtree file should be saved with LF line endings, this should still work.