mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
replace existing files with saveBytes(), also look into deployJava.js (issue #650)
This commit is contained in:
@@ -4399,6 +4399,11 @@ public class PApplet extends Activity implements PConstants, Runnable {
|
||||
bos.close();
|
||||
bos = null;
|
||||
|
||||
if (targetFile.exists() && !targetFile.delete()) {
|
||||
System.err.println("Could not replace " +
|
||||
targetFile.getAbsolutePath() + ".");
|
||||
}
|
||||
|
||||
if (!tempFile.renameTo(targetFile)) {
|
||||
System.err.println("Could not rename temporary file " +
|
||||
tempFile.getAbsolutePath());
|
||||
|
||||
Reference in New Issue
Block a user