mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
checks disk file exist
This commit is contained in:
parent
197ade6aeb
commit
f53cff045f
|
@ -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…
Reference in a new issue