Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Data Loss (Desktop)
2 participants