mirror of
https://github.com/rclone/rclone.git
synced 2024-11-07 09:04:52 +01:00
vfs: Change modtime of file before upload to current
Previously files before they get uploaded will inherit the directory modtime. This changes that to use the current time instead.
This commit is contained in:
parent
88df5927f9
commit
b2ded6212b
@ -356,7 +356,7 @@ func (f *File) ModTime() (modTime time.Time) {
|
||||
return pendingModTime
|
||||
}
|
||||
if o == nil {
|
||||
return d.ModTime()
|
||||
return time.Now()
|
||||
}
|
||||
return o.ModTime(context.TODO())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user