Add option to ignore storage folder structrue in added files #73
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When you add a file the directory structure of that file is kept in the resulting zip file.
For example if I want to add a file with the path
path/to/my/file.png
and I add it with$personalData->addFile('path/to/my/file.png', 'disk_name', 'images');
, the file be saved in this location:temp-dir/images/path/to/my/file.png
.I want the file to end up in
temp-dir/images/file.png
and not reveal my directory structure in the export file.Adding
'keep_directory_structure' => false,
to the config file will add this behavior. Leaving it as true(the default) will keep the old behavior.