Create base folder in zip file with FastZip #694
Unanswered
frankzoldan
asked this question in
Q&A
Replies: 2 comments
This comment has been minimized.
This comment has been minimized.
-
You can use the parent directory as the base and then use a path filters to only include the fastZip.CreateZip(@"d:\Backups\BackupA.zip", @"d:\Projects\", true, @"Project1\\.*", @"Project1\\.*"); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I do like FastZip because I can create zip files and store a source directory recursively with little coding.
However, I could not find out how to create a base directory in the zip file where I would store all the files and folders of the source directory.
When I have some files and folders like this:
And I create a zip file with:
fastZip.CreateZip(@"d:\Backups\BackupA.zip", @"d:\Projects\Project1\", true, "", "");
Then the destination paths will be:
But I want them to be:
Project1 should be the base folder for the archived files and folders.
Is this possible to achieve with FastZip?
Beta Was this translation helpful? Give feedback.
All reactions