Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows ZIP file generation - path separator issue #145

Closed
rusq opened this issue Sep 21, 2022 · 3 comments · Fixed by #156
Closed

Windows ZIP file generation - path separator issue #145

rusq opened this issue Sep 21, 2022 · 3 comments · Fixed by #156
Labels
bug Something isn't working
Milestone

Comments

@rusq
Copy link
Owner

rusq commented Sep 21, 2022

This issue exists not to lose visibility of this discussion on mattermost forums:
https://forum.mattermost.com/t/import-from-slack-mmetl-finds-no-posts/14073

@rusq
Copy link
Owner Author

rusq commented Sep 22, 2022

Hey @rusq,

yeah the exported zip did not contain the folders for the channels, just the json files with channel\ in the filename. Solution was to not use the inbuilt export to zip function but to export it to a folder and then zip it afterwards. I tried it again recently and miraculously it worked as it should. So probably I did something dumb in the beginning.

My first dump:

vmware/
vmware/2019-12-05.json
vmware/2020-05-19.json
vmware/2020-10-09.json
vmware/2022-06-28.json
vmware/2022-08-09.json

the one i did recently:

vmware\2020-05-19.json
vmware\2020-10-09.json
vmware\2022-06-28.json
vmware\2022-08-09.json
vmware\2019-12-05.json

David

@rusq
Copy link
Owner Author

rusq commented Sep 22, 2022

Problem with generating ZIP files on windows - possibly path separator issue.

@rusq rusq changed the title Possible issue with mattermost export->mmetl Windows ZIP file generation - malformed path Sep 22, 2022
@rusq rusq changed the title Windows ZIP file generation - malformed path Windows ZIP file generation - path separator issue Sep 22, 2022
@rusq rusq added the bug Something isn't working label Oct 9, 2022
@rusq
Copy link
Owner Author

rusq commented Oct 9, 2022

Workaround:

  • Unzip the export file to a temporary folder
  • Zip it again with Windows built in compressor, or any other archiver supporting ZIP files.

@rusq rusq added this to the v2.2.2 milestone Oct 10, 2022
@rusq rusq closed this as completed in #156 Oct 16, 2022
rusq added a commit that referenced this issue Oct 16, 2022
#145: fix zip file structure on windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant