mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-10 09:46:40 +02:00
Update the 'Processing XXXX' output to display the full path (#987)
* Update the 'Processing XXXX' output to display the full path, rather than just the item name from the database. In cases where you have the same file or directory name, having the full path where it is present is more informative
This commit is contained in:
parent
810c47fcfe
commit
25fd9a1b00
|
@ -2772,10 +2772,14 @@ final class SyncEngine
|
|||
}
|
||||
}
|
||||
|
||||
log.vlog("Processing ", item.name);
|
||||
bool unwanted = false;
|
||||
string path;
|
||||
|
||||
// Compute this item path early as we we use this path often
|
||||
path = itemdb.computePath(item.driveId, item.id);
|
||||
log.vlog("Processing ", buildNormalizedPath(path));
|
||||
|
||||
// What type of DB item are we processing
|
||||
// Is this item excluded by user configuration of skip_dir or skip_file?
|
||||
// Is this item a directory or 'remote' type? A 'remote' type is a folder DB tie so should be compared as directory for exclusion
|
||||
if ((item.type == ItemType.dir)||(item.type == ItemType.remote)) {
|
||||
|
@ -2790,7 +2794,7 @@ final class SyncEngine
|
|||
|
||||
// If path or filename does not exclude, is this excluded due to use of selective sync?
|
||||
if (!unwanted) {
|
||||
path = itemdb.computePath(item.driveId, item.id);
|
||||
// Is the path excluded via sync_list?
|
||||
unwanted = selectiveSync.isPathExcludedViaSyncList(path);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue