Prevent operations on a file once it's closed

This commit is contained in:
2024-04-14 11:46:43 -07:00
parent 02532437ea
commit e6b36494e7
3 changed files with 20 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ var (
ErrFileWriteOnly = errors.New("file is write only")
ErrInvalidOffset = errors.New("offset out of range")
ErrNoRemoveRoot = errors.New("refusing to remove root directory")
ErrFileClosed = errors.New("cannot perform operation on a closed file")
)
// Error represents an error returned by BLE FS