Skip to content

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.

1 participant