mirror of
https://github.com/rclone/rclone.git
synced 2024-11-23 00:43:49 +01:00
ListDirSorted check for excludefile
This commit is contained in:
parent
37aaa19f3a
commit
557dd8f031
@ -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 New Issue
Block a user