mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-18 13:45:22 +02:00
fixed bug which caused dirs to not get deleted
This commit is contained in:
parent
9b80d99ad4
commit
10cfa83d39
14
src/sync.d
14
src/sync.d
|
@ -316,13 +316,13 @@ final class SyncEngine
|
|||
if (isFile(path)) {
|
||||
remove(path);
|
||||
writeln("Deleted file: ", path);
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
rmdir(path);
|
||||
writeln("Deleted dir: ", path);
|
||||
} catch (FileException e) {
|
||||
writeln("Keeping dir: ", path);
|
||||
} else {
|
||||
try {
|
||||
rmdir(path);
|
||||
writeln("Deleted directory: ", path);
|
||||
} catch (FileException e) {
|
||||
// directory not empty
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue