1
0
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:
Nick Craig-Wood
2012-12-01 12:05:17 +00:00
parent 25a1b96537
commit 19668ac18f
4 changed files with 96 additions and 36 deletions

View File

@@ -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)
}