Chris Lu
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
1 deletions
-
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) { |
|
|
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 { |
|
|
func (df *DiskFile) Name() string { |
|
|