mirror of
https://github.com/rclone/rclone.git
synced 2025-08-13 15:37:26 +02:00
local, fs: --exclude-if-present ignores directories which it doesn't have permission for - fixes #1959
This commit is contained in:
committed by
Nick Craig-Wood
parent
ad76dd0adc
commit
acd55a8f65
@ -178,6 +178,9 @@ func (f *Fs) newObjectWithInfo(remote, dstPath string, info os.FileInfo) (fs.Obj
|
||||
if os.IsNotExist(err) {
|
||||
return nil, fs.ErrorObjectNotFound
|
||||
}
|
||||
if os.IsPermission(err) {
|
||||
return nil, fs.ErrorPermissionDenied
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user