| 2044 | } |
| 2045 | |
| 2046 | bool 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 |
nothing calls this directly
no outgoing calls
no test coverage detected