mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 10:30:44 +01:00
properly remove folders that are overwritten on "save as"
This commit is contained in:
@@ -736,6 +736,13 @@ public class Sketch {
|
||||
}
|
||||
} catch (IOException e) { }
|
||||
|
||||
// if the new folder already exists, then need to remove
|
||||
// its contents before copying everything over
|
||||
// (user will have already been warned)
|
||||
Base.removeDir(newFolder);
|
||||
// in fact, you can't do this on windows because it tries
|
||||
// to go into the same folder, but it happens on osx a lot.
|
||||
|
||||
// copy the entire contents of the sketch folder
|
||||
Base.copyDir(folder, newFolder);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user