mirror of
https://github.com/rclone/rclone.git
synced 2026-01-06 02:23:24 +00:00
Fix loss of precision for setting timestamps so roundtrip happens properly
This commit is contained in:
@@ -77,7 +77,7 @@ func (fs *FsObject) md5sum() (string, error) {
|
||||
|
||||
// Sets the modification time of the local fs object
|
||||
func (fs *FsObject) SetModTime(modTime time.Time) {
|
||||
err := os.Chtimes(fs.path, modTime, modTime)
|
||||
err := Chtimes(fs.path, modTime, modTime)
|
||||
if err != nil {
|
||||
fs.Debugf("Failed to set mtime on file: %s", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user