mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-28 11:16:52 +01:00
fix (plg_backend_artifactory): ls metadata fix
This commit is contained in:
parent
48c89767ad
commit
3a9961d6fe
1 changed files with 2 additions and 2 deletions
|
|
@ -142,13 +142,13 @@ func (this ArtifactoryStorage) Ls(path string) ([]os.FileInfo, error) {
|
|||
return "file"
|
||||
}(),
|
||||
FTime: func() int64 {
|
||||
t, err := time.Parse(time.RFC1123, artifactoryFile.LastModified)
|
||||
t, err := time.Parse("2006-01-02T15:04:05.000Z", artifactoryFile.LastModified)
|
||||
if err != nil {
|
||||
return 0
|
||||
}
|
||||
return t.Unix()
|
||||
}(),
|
||||
FSize: 0,
|
||||
FSize: artifactoryFile.Size,
|
||||
}
|
||||
}
|
||||
return files, nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue