mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-16 20:12:07 +02:00
[2.0.0] FS::name() returns the item name as in Arduino SD (#4892)
* FS::name() returns the item name as in Arduino SD Added method FS::path() that returns the full path * Adjust examples
This commit is contained in:
@ -143,6 +143,15 @@ File::operator bool() const
|
||||
return _p != nullptr && *_p != false;
|
||||
}
|
||||
|
||||
const char* File::path() const
|
||||
{
|
||||
if (!*this) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return _p->path();
|
||||
}
|
||||
|
||||
const char* File::name() const
|
||||
{
|
||||
if (!*this) {
|
||||
|
Reference in New Issue
Block a user