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 55a8f0e9ca
commit 2d77a294bd
8 changed files with 105 additions and 70 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 {