Skip to content

remove non empty directory returns inconsistent error codes between LittleFS & FatFS #5653

@itayzafrir

Description

@itayzafrir

Attempting to remove/delete a non-empty directory from the FS returns different error codes when using FatFS vs LittleFS

  • Type: Bug
  • Priority: Major

Bug

Target
K64F

Toolchain:
GCC_ARM

Expected behavior
The same error code will be returned for both file systems

Actual behavior
When trying to remove a non-empty directory using FatFS: error code = EACCES
When trying to remove a non-empty directory using LittleFS: error code = EINVAL

Steps to reproduce
remove a non empty directory using FatFS and then using LittleFS

@geky

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions