| | |
| | | |
| | | try |
| | | { |
| | | File backingFile = new File(backingFilePath); |
| | | File backingFile = getFileForPath(backingFilePath); |
| | | if (! backingFile.exists()) |
| | | { |
| | | createNewTaskBackingFile(); |
| | |
| | | |
| | | |
| | | // See if there is a ".save" file. If so, then delete it. |
| | | File saveFile = new File(backingFilePath + ".save"); |
| | | File saveFile = getFileForPath(backingFilePath + ".save"); |
| | | try |
| | | { |
| | | if (saveFile.exists()) |
| | |
| | | |
| | | |
| | | // If there is an existing backing file, then rename it to ".save". |
| | | File backingFile = new File(backingFilePath); |
| | | File backingFile = getFileForPath(backingFilePath); |
| | | try |
| | | { |
| | | if (backingFile.exists()) |
| | |
| | | |
| | | |
| | | // Rename the ".tmp" file into place. |
| | | File tmpFile = new File(tmpFilePath); |
| | | File tmpFile = getFileForPath(tmpFilePath); |
| | | try |
| | | { |
| | | tmpFile.renameTo(backingFile); |