Closed
Description
Basic Infos
- This issue complies with the issue POLICY doc.
- I have read the documentation at readthedocs and the issue is not addressed there.
- I have tested that the issue is present in current master branch (aka latest git).
- I have searched the issue tracker for a similar issue.
- If there is a stack dump, I have decoded it.
- I have filled out all fields below.
Platform
- Hardware: ESP-12
- Core Version: latest git
- Development Env: Platformio
- Operating System: Windows
Problem Description
According to the documentation
name()
should return a short (no-path) file name whereas
fullname()
should return the full path file name
On LittleFS this works properly but on SPIFFS both functions return the full name (including path). Looking at the source code, both functions indeed just return _stat.name in the case of SPIFFS, whereas in LittleFS there is code to lookup the last / character and return the name past this /.
I know that SPIFFS does not truly support directories, but it supports the notion of directories as in traversing all files with a common path name. Hence I was expecting name() to return the short file name.
PS. This is a low priority question/request since it's very easy to get desired result is user code.
Metadata
Metadata
Assignees
Labels
No labels