Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sync: fix optional feature not implemented errors
10eb474 introduced a bug that caused operations.CopyDirMetadata to sometimes be called even when the dest Fs lacks metadata support. This resulted in errors such as `expecting X to have MkdirMetadata method: optional feature not implemented` and `expecting X to have SetMetadata method`. This change fixes the issue by instead using operations.SetDirModTime when s.setDirMetadata is false.
- Loading branch information