mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-01 05:22:14 +02:00
Update PR
* Update PR
This commit is contained in:
parent
8d260a6b26
commit
ee4092d9d4
10
src/main.d
10
src/main.d
|
@ -688,7 +688,11 @@ int main(string[] cliArgs) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Exit application using exit scope
|
// Exit application using exit scope
|
||||||
|
if (!syncEngineInstance.syncFailures) {
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
|
} else {
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void performUploadOnlySyncProcess(string localPath, Monitor filesystemMonitor = null) {
|
void performUploadOnlySyncProcess(string localPath, Monitor filesystemMonitor = null) {
|
||||||
|
@ -882,21 +886,21 @@ void cleanupDryRunDatabaseFiles(string dryRunDatabaseFile) {
|
||||||
// If the dry run database exists, clean this up
|
// If the dry run database exists, clean this up
|
||||||
if (exists(dryRunDatabaseFile)) {
|
if (exists(dryRunDatabaseFile)) {
|
||||||
// remove the existing file
|
// remove the existing file
|
||||||
log.log("DRY-RUN: Removing items-dryrun.sqlite3 as it still exists for some reason");
|
log.vdebug("DRY-RUN: Removing items-dryrun.sqlite3 as it still exists for some reason");
|
||||||
safeRemove(dryRunDatabaseFile);
|
safeRemove(dryRunDatabaseFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
// silent cleanup of shm files if it exists
|
// silent cleanup of shm files if it exists
|
||||||
if (exists(dryRunShmFile)) {
|
if (exists(dryRunShmFile)) {
|
||||||
// remove items-dryrun.sqlite3-shm
|
// remove items-dryrun.sqlite3-shm
|
||||||
log.log("DRY-RUN: Removing items-dryrun.sqlite3-shm as it still exists for some reason");
|
log.vdebug("DRY-RUN: Removing items-dryrun.sqlite3-shm as it still exists for some reason");
|
||||||
safeRemove(dryRunShmFile);
|
safeRemove(dryRunShmFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
// silent cleanup of wal files if it exists
|
// silent cleanup of wal files if it exists
|
||||||
if (exists(dryRunWalFile)) {
|
if (exists(dryRunWalFile)) {
|
||||||
// remove items-dryrun.sqlite3-wal
|
// remove items-dryrun.sqlite3-wal
|
||||||
log.log("DRY-RUN: Removing items-dryrun.sqlite3-wal as it still exists for some reason");
|
log.vdebug("DRY-RUN: Removing items-dryrun.sqlite3-wal as it still exists for some reason");
|
||||||
safeRemove(dryRunWalFile);
|
safeRemove(dryRunWalFile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue