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