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

Delete the contents of the save directory before export #568

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fortinmike
Copy link

When exporting a spec repeatedly while tweaking assets for integration, the assets directory of the spec can become full of unwanted, old assets.

This pull request adds a cleanup step before each export where the save path is deleted recursively to keep the spec clean and representative of the actual assets in the latest version of the Sketch document.

This seems like a desirable default behaviour. I didn't notice a performance difference with or without the cleanup.

Please consider merging this into mainline!

… up cruft (old assets, etc.)

(cherry picked from commit 7a9c717)
@fortinmike fortinmike changed the title Delete the contents of the save directory before export to avoid building up cruft (old assets, etc.) Delete the contents of the save directory before export Mar 13, 2019
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.

None yet

1 participant