forked from TrueCloudLab/rclone
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue