mirror of
https://github.com/minio/minio.git
synced 2024-12-26 07:05:55 -05:00
ftp: Return current time for prefixes/directories (#19519)
This commit is contained in:
parent
740ec80819
commit
e2709ea129
@ -81,8 +81,13 @@ func (m *minioFileInfo) Mode() os.FileMode {
|
||||
return os.ModePerm
|
||||
}
|
||||
|
||||
var minFileDate = time.Date(1980, 1, 1, 0, 0, 0, 0, time.UTC) // Workaround for Filezilla
|
||||
|
||||
func (m *minioFileInfo) ModTime() time.Time {
|
||||
return m.info.LastModified
|
||||
if !m.info.LastModified.IsZero() {
|
||||
return m.info.LastModified
|
||||
}
|
||||
return minFileDate
|
||||
}
|
||||
|
||||
func (m *minioFileInfo) IsDir() bool {
|
||||
|
Loading…
Reference in New Issue
Block a user