From 37fad282e6c89f46bbb1291d968b013d6eebbd14 Mon Sep 17 00:00:00 2001 From: dom Date: Sun, 26 Jul 2020 20:26:35 +0200 Subject: [PATCH] change m and atime --- ftpActions.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ftpActions.go b/ftpActions.go index e940ef8..43a84be 100644 --- a/ftpActions.go +++ b/ftpActions.go @@ -49,6 +49,8 @@ func DownloadFTP(user string, password string, path string) error { } res.Close() + + err = os.Chtimes(filepath.Join(path, file.Name), file.Time, file.Time) } return nil