mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 15:30:06 +08: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
|
return pendingModTime
|
||||||
}
|
}
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return d.ModTime()
|
return time.Now()
|
||||||
}
|
}
|
||||||
return o.ModTime(context.TODO())
|
return o.ModTime(context.TODO())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user