mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-19 22:25:03 +02:00
* Update how './' is stripped from a path before check if excluded
This commit is contained in:
parent
bc9f2cf893
commit
dcc0322cac
|
@ -2798,7 +2798,7 @@ final class SyncEngine
|
||||||
log.vdebug("Checking path: ", path);
|
log.vdebug("Checking path: ", path);
|
||||||
// Only check path if config is != ""
|
// Only check path if config is != ""
|
||||||
if (cfg.getValueString("skip_dir") != "") {
|
if (cfg.getValueString("skip_dir") != "") {
|
||||||
if (selectiveSync.isDirNameExcluded(strip(path,"./"))) {
|
if (selectiveSync.isDirNameExcluded(path.strip('.').strip('/'))) {
|
||||||
log.vlog("Skipping item - excluded by skip_dir config: ", path);
|
log.vlog("Skipping item - excluded by skip_dir config: ", path);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2806,13 +2806,13 @@ final class SyncEngine
|
||||||
}
|
}
|
||||||
if (isFile(path)) {
|
if (isFile(path)) {
|
||||||
log.vdebug("Checking file: ", path);
|
log.vdebug("Checking file: ", path);
|
||||||
if (selectiveSync.isFileNameExcluded(strip(path,"./"))) {
|
if (selectiveSync.isFileNameExcluded(path.strip('.').strip('/'))) {
|
||||||
log.vlog("Skipping item - excluded by skip_file config: ", path);
|
log.vlog("Skipping item - excluded by skip_file config: ", path);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (selectiveSync.isPathExcludedViaSyncList(path)) {
|
if (selectiveSync.isPathExcludedViaSyncList(path)) {
|
||||||
if ((isFile(path)) && (cfg.getValueBool("sync_root_files")) && (rootName(strip(path,"./")) == "")) {
|
if ((isFile(path)) && (cfg.getValueBool("sync_root_files")) && (rootName(path.strip('.').strip('/')) == "")) {
|
||||||
log.vdebug("Not skipping path due to sync_root_files inclusion: ", path);
|
log.vdebug("Not skipping path due to sync_root_files inclusion: ", path);
|
||||||
} else {
|
} else {
|
||||||
string userSyncList = cfg.configDirName ~ "/sync_list";
|
string userSyncList = cfg.configDirName ~ "/sync_list";
|
||||||
|
|
Loading…
Reference in a new issue