VfsFile.createZipFromTree() - How to add directory being zipped to the root of the zip? #2282
Answered
by
soywiz
slickorange
asked this question in
Q&A
-
How can I zip a directory with createZipFromTree so that the directory being zipped is at the root of the zip? Eg at the moment when I zip a target directory it zips it as |
Beta Was this translation helpful? Give feedback.
Answered by
soywiz
Aug 23, 2024
Replies: 1 comment 1 reply
-
Does this work for you? localVfs("/Users/user/files/my_directory").jail().createZipFromTree() |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
slickorange
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does this work for you?
localVfs("/Users/user/files/my_directory").jail().createZipFromTree()