This commit is contained in:
Chris Lu
2019-12-02 20:49:58 -08:00
parent 6383b45bd0
commit 70648d35ad
4 changed files with 12 additions and 12 deletions

View File

@@ -142,13 +142,13 @@ func (s3backendStorageFile S3BackendStorageFile) GetStat() (datSize int64, modTi
files := s3backendStorageFile.tierInfo.GetFiles()
if len(files)==0 {
if len(files) == 0 {
err = fmt.Errorf("remote file info not found")
return
}
datSize = int64(files[0].FileSize)
modTime = time.Unix(int64(files[0].ModifiedTime),0)
modTime = time.Unix(int64(files[0].ModifiedTime), 0)
return
}