| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Path | getPathForNewBackupFileAndCreateDirectory(Path targetFile, BackupFileType fileType, Path backupDir)
Determines the path of the backup file (using the given extension) As default, a directory inside the user temporary dir is used. |
| public static Optional | |
| public static String |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| BackupFileUtil | back to summary |
|---|---|
| private BackupFileUtil() | |
| getPathForNewBackupFileAndCreateDirectory | back to summary |
|---|---|
| public static Path getPathForNewBackupFileAndCreateDirectory(Path targetFile, BackupFileType fileType, Path backupDir) Determines the path of the backup file (using the given extension)
As default, a directory inside the user temporary dir is used. SIDE EFFECT: Creates the directory. In case that fails, the return path of the .bak file is set to be next to the .bib file
Note that this backup is different from the | |
| getPathOfLatestExistingBackupFile | back to summary |
|---|---|
| public static Optional | |
| getUniqueFilePrefix | back to summary |
|---|---|
| public static String getUniqueFilePrefix(Path targetFile) Determines a unique file prefix. When creating a backup file, the backup file should belong to the original file. Just adding ".bak" suffix to the filename, does not work in all cases: It may be possible that the user has opened "paper.bib" twice. Thus, we need to create a unique prefix to distinguish these files. | |