mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Add SDFS::Dir::fileTime callback (#6985)
Forgot to add a Dir->fileTime override, resulting in it always returning (time_t)0, or Jan 1, 1970. Add the override, returning the proper lastWriteTime. Fixes #6981
This commit is contained in:
parent
753b5a581a
commit
d4d89244bd
@ -417,6 +417,16 @@ public:
|
||||
return _size;
|
||||
}
|
||||
|
||||
time_t fileTime() override
|
||||
{
|
||||
if (!_valid) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return _time;
|
||||
}
|
||||
|
||||
|
||||
bool isFile() const override
|
||||
{
|
||||
return _valid ? _isFile : false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user