ListDirSorted check for excludefile
This commit is contained in:
parent
37aaa19f3a
commit
557dd8f031
1 changed files with 4 additions and 0 deletions
|
@ -622,6 +622,10 @@ func ListDirSorted(fs Fs, includeAll bool, dir string) (entries DirEntries, err
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
if !includeAll && Config.Filter.ListContainsExcludeFile(entries) {
|
||||||
|
Debugf(dir, "Excluded from sync (and deletion) based on exclude file")
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
return filterAndSortDir(entries, includeAll, dir, Config.Filter.IncludeObject, Config.Filter.IncludeDirectory)
|
return filterAndSortDir(entries, includeAll, dir, Config.Filter.IncludeObject, Config.Filter.IncludeDirectory)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue