1
0
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:
Earle F. Philhower, III 2020-01-04 11:36:47 -08:00 committed by GitHub
parent 753b5a581a
commit d4d89244bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;