Browse Source

Merge pull request #2747 from kmlebedev/issues_2658

pull/2749/head
Chris Lu 3 years ago
committed by GitHub
parent
commit
728bf50a73
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      weed/storage/backend/disk_file.go

5
weed/storage/backend/disk_file.go

@ -70,7 +70,10 @@ func (df *DiskFile) Close() error {
}
func (df *DiskFile) GetStat() (datSize int64, modTime time.Time, err error) {
return df.fileSize, df.modTime, nil
if df.File == nil {
err = os.ErrInvalid
}
return df.fileSize, df.modTime, err
}
func (df *DiskFile) Name() string {

Loading…
Cancel
Save