fix(fs): fix fd leaking issue

This commit is contained in:
hexxa 2021-09-13 15:15:03 +08:00 committed by Hexxa
parent fb9de35e81
commit 50f66704b1
6 changed files with 96 additions and 39 deletions

View file

@ -23,6 +23,7 @@ type ISimpleFS interface {
Close() error
Sync() error
GetFileReader(path string) (ReadCloseSeeker, error)
CloseReader(path string) error
Root() string
ListDir(path string) ([]os.FileInfo, error)
}