MCPcopy Create free account
hub / github.com/HASwitchPlate/openHASP / getFileModTime

Method getFileModTime

lib/SimpleFTPServer/FtpServer.cpp:2046–2061  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2044}
2045
2046bool FtpServer::getFileModTime(char* path, uint16_t* pdate, uint16_t* ptime)
2047{
2048#if STORAGE_TYPE == STORAGE_FATFS
2049 return STORAGE_MANAGER.getFileModTime(path, pdate, ptime);
2050#else
2051 // FTP_FILE file;
2052 bool res;
2053
2054 if(!openFile(path, FTP_FILE_READ)) {
2055 return false;
2056 }
2057 res = getFileModTime(pdate, ptime);
2058 file.close();
2059 return res;
2060#endif
2061}
2062
2063// Assume SD library is SdFat (or family) and file is open
2064

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected