diff --git a/blefs/basic.go b/blefs/basic.go index f31293c..3097d9e 100644 --- a/blefs/basic.go +++ b/blefs/basic.go @@ -46,8 +46,8 @@ func (blefs *FS) Remove(path string) error { // Read status byte return decode(data, &status) }) - if status == FSStatusError { - // If status is not ok, return error + if status != FSStatusOk { + // If status is not ok, return error return FSError{status} } return nil