Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/3.10' into 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
philipmarzullo64 committed Jun 29, 2020
2 parents 0b3fa94 + c500a3c commit 7725a58
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -33,6 +33,7 @@
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.StringReader;
import java.nio.file.Files;
import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.Map;
Expand Down Expand Up @@ -168,9 +169,12 @@ public void setState(State state) {
}
}

if (!file.renameTo(newFile)) {
try {
Files.move(file.toPath(), newFile.toPath());
} catch(IOException e) {
log.error(e.getMessage(),e);
handleFailedRename(file, newFile);
}
}
}
}

Expand Down

0 comments on commit 7725a58

Please sign in to comment.