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:
Rob Calistri 2020-06-09 10:07:28 -04:00 committed by Nick Craig-Wood
parent 88df5927f9
commit b2ded6212b

View File

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