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

Prevent data loss when exporting a file as an existing directory #736

Merged
merged 2 commits into from
Sep 21, 2015

Conversation

joemirizio
Copy link
Contributor

Fixes #576 and #459.

When a file (eg. PDF) is exported with the destination path of an existing directory, the directory is destroyed and the file is not created. Although the exporter uses the correct dialog window (file/directory) when Browse is clicked, the user is able to manually modify the destination path in the text field, thus necessitating extra validation.

This fix ensures that if the destination path exists, that it is the correct type (file or directory) required by the selected export type.

Tested on Mac and Windows.

@prikhi prikhi added this to the v2.1.0 milestone Sep 21, 2015
@prikhi
Copy link
Owner

prikhi commented Sep 21, 2015

Thanks! New version soon.

prikhi added a commit that referenced this pull request Sep 21, 2015
Prevent data loss when exporting a file as an existing directory
@prikhi prikhi merged commit b1021aa into prikhi:develop Sep 21, 2015
@prikhi prikhi mentioned this pull request Sep 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Data Loss (Desktop)
2 participants