mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-09 09:16:42 +02:00
Update logging output to handle directory entries only (#1364)
* When in --monitor mode, avoid outputting misleading logging when the new or modified item is a file, not a directory
This commit is contained in:
parent
fd04d632d6
commit
5c8083001a
15
src/sync.d
15
src/sync.d
|
@ -2915,7 +2915,12 @@ final class SyncEngine
|
|||
}
|
||||
|
||||
// scan for changes in the path provided
|
||||
log.log("Uploading differences of ", logPath);
|
||||
if (isDir(path)) {
|
||||
// if this path is a directory, output this message.
|
||||
// if a file, potentially leads to confusion as to what the client is actually doing
|
||||
log.log("Uploading differences of ", logPath);
|
||||
}
|
||||
|
||||
Item item;
|
||||
// For each unique OneDrive driveID we know about
|
||||
foreach (driveId; driveIDsArray) {
|
||||
|
@ -2935,7 +2940,13 @@ final class SyncEngine
|
|||
}
|
||||
}
|
||||
|
||||
log.log("Uploading new items of ", logPath);
|
||||
// scan for changes in the path provided
|
||||
if (isDir(path)) {
|
||||
// if this path is a directory, output this message.
|
||||
// if a file, potentially leads to confusion as to what the client is actually doing
|
||||
log.log("Uploading new items of ", logPath);
|
||||
}
|
||||
|
||||
// Filesystem walk to find new files not uploaded
|
||||
uploadNewItems(path);
|
||||
// clean up idsToDelete only if --dry-run is set
|
||||
|
|
Loading…
Reference in a new issue