mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Merge pull request #2747 from kmlebedev/issues_2658
This commit is contained in:
commit
728bf50a73
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue