mirror of
https://github.com/rclone/rclone.git
synced 2025-08-15 00:02:35 +02:00
touch: fix recursive touch due to recently introduced error ErrorIsDir
This commit is contained in:
@ -132,7 +132,7 @@ func Touch(ctx context.Context, f fs.Fs, fileName string) error {
|
||||
return errors.Wrap(err, "failed to touch (create)")
|
||||
}
|
||||
}
|
||||
if errors.Cause(err) == fs.ErrorNotAFile {
|
||||
if errors.Cause(err) == fs.ErrorIsDir {
|
||||
if recursive {
|
||||
// Touch existing directory, recursive
|
||||
fs.Debugf(nil, "Touching files in directory recursively")
|
||||
|
Reference in New Issue
Block a user