Unify time modification on SD and SPIFFS (#738)

* Add access to last write date time

add example

* rename cpp to ino orz

* wrong copy -past

* No comment orz

* Add missing space
This commit is contained in:
Luc
2018-03-04 21:20:34 +01:00
committed by Me No Dev
parent 7141e3e29d
commit adf513fc17
8 changed files with 620 additions and 0 deletions

View File

@ -295,6 +295,11 @@ VFSFileImpl::operator bool()
return (_isDirectory && _d != NULL) || _f != NULL;
}
time_t VFSFileImpl::getLastWrite() {
_getStat() ;
return _stat.st_mtime;
}
void VFSFileImpl::_getStat() const
{
if(!_path) {