diff options
-rw-r--r-- | lib/model/folder_sendrecv.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/model/folder_sendrecv.go b/lib/model/folder_sendrecv.go index 6a9834b9bd..cb3971470a 100644 --- a/lib/model/folder_sendrecv.go +++ b/lib/model/folder_sendrecv.go @@ -1227,8 +1227,6 @@ func (f *sendReceiveFolder) shortcutFile(file protocol.FileInfo, dbUpdateChan ch } } - f.mtimefs.Chtimes(file.Name, file.ModTime(), file.ModTime()) // never fails - // Still need to re-write the trailer with the new encrypted fileinfo. if f.Type == config.FolderTypeReceiveEncrypted { err = inWritableDir(func(path string) error { @@ -1249,6 +1247,8 @@ func (f *sendReceiveFolder) shortcutFile(file protocol.FileInfo, dbUpdateChan ch } } + f.mtimefs.Chtimes(file.Name, file.ModTime(), file.ModTime()) // never fails + dbUpdateChan <- dbUpdateJob{file, dbUpdateShortcutFile} } |