Skip to content

Commit

Permalink
Add SDFS::Dir::fileTime callback (#6985)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
earlephilhower authored Jan 4, 2020
1 parent 753b5a5 commit d4d8924
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions libraries/SDFS/src/SDFS.h
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,16 @@ class SDFSDirImpl : public DirImpl
return _size;
}

time_t fileTime() override
{
if (!_valid) {
return 0;
}

return _time;
}


bool isFile() const override
{
return _valid ? _isFile : false;
Expand Down

0 comments on commit d4d8924

Please sign in to comment.