From b2ded6212b04f67af48feef558b5182b1ecfce5a Mon Sep 17 00:00:00 2001 From: Rob Calistri Date: Tue, 9 Jun 2020 10:07:28 -0400 Subject: [PATCH] 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. --- vfs/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vfs/file.go b/vfs/file.go index 2d1a3c59e..aa11ca013 100644 --- a/vfs/file.go +++ b/vfs/file.go @@ -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()) }