Closed thisguyscode closed 4 years ago
@brunschgi - that whole thing is on hold because it would take significant dev resources to help get it to production quality. Sure we could think of a different solution for clearing the exports folder if it came to it though.
First two commits are just prettier related so check out f1414ea for clarity of what I changed.
For some reason (beyond my understanding) Sketch reinstantiates (correct word?) the
filemanager
sometimes (e.g. when handlingselectionChanged
event) - which causesfilemanager
to runclearExportFolder()
, regardless of whetheruploadFile()
has been run on those exports yet.Fix seems to be to remove this from
filemanager
and delete only the relevant files when theuploadFile()
promise is resolved. Two particulardeleteFile()
calls were commented out by @brunschgi so I'd particularly like him to double check this solution.