Fix Windows sync (WalkEntryDir now returns only UNIX-style separators); fix setting remote mod time on remote files when downloading; fix server binary compilation; fix init failing silently during SSH configuration

This commit is contained in:
2024-05-31 01:23:50 -04:00
parent b4f0a4e896
commit 50f514ece4
13 changed files with 114 additions and 105 deletions
+1 -1
View File
@@ -260,7 +260,7 @@ func sftpSync(downloadList, uploadList []string, manualSync bool) {
localFile.Close()
// set the modification time of the local file to match the value saved from the remote file (from before the download)
err = os.Chtimes(remoteEntryFullPath, time.Now(), modTime)
err = os.Chtimes(localEntryFullPath, time.Now(), modTime)
}
if filesTransfered {