We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bffa074 commit d7a98aaCopy full SHA for d7a98aa
SourceAnalysis/AtomicFile.md
@@ -71,7 +71,7 @@ public AtomicFile(File baseName) {
71
72
```java
73
public FileOutputStream startWrite() throws IOException {
74
- // 如果备份文件不存在,将原文件重命名为备份文件,并删除原文件
+ // 当原文件存在,备份文件不存在的时候,原文件更名为备份文件
75
if (mBaseName.exists()) {
76
if (!mBackupName.exists()) {
77
// 如果原文件存在且备份文件不存在,直接将原文件重命名为备份文件
0 commit comments