Skip to content

Commit d4d8924

Browse files
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
1 parent 753b5a5 commit d4d8924

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

libraries/SDFS/src/SDFS.h

+10
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,16 @@ class SDFSDirImpl : public DirImpl
417417
return _size;
418418
}
419419

420+
time_t fileTime() override
421+
{
422+
if (!_valid) {
423+
return 0;
424+
}
425+
426+
return _time;
427+
}
428+
429+
420430
bool isFile() const override
421431
{
422432
return _valid ? _isFile : false;

0 commit comments

Comments
 (0)