Merge pull request #2747 from kmlebedev/issues_2658

This commit is contained in:
Chris Lu 2022-03-10 08:05:31 -08:00 committed by GitHub
commit 728bf50a73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {