| 1734 | } |
| 1735 | |
| 1736 | bool FtpServer::makeExistsPath(char* path, char* param) |
| 1737 | { |
| 1738 | if(!makePath(path, param)) return false; |
| 1739 | // RoSchmi |
| 1740 | //#if STORAGE_TYPE == STORAGE_SPIFFS || STORAGE_TYPE == STORAGE_SD |
| 1741 | #if(STORAGE_TYPE == STORAGE_SPIFFS || STORAGE_TYPE == STORAGE_SD || STORAGE_TYPE == STORAGE_SEEED_SD) |
| 1742 | if(strcmp(path, "/") == 0) return true; |
| 1743 | #endif |
| 1744 | DEBUG_PRINT("PATH --> ") |
| 1745 | DEBUG_PRINT(path) |
| 1746 | if(exists(path)) { |
| 1747 | DEBUG_PRINTLN(" ...EXIST!") |
| 1748 | return true; |
| 1749 | } |
| 1750 | DEBUG_PRINTLN(" ...NOT EXIST!") |
| 1751 | client.print(F("550 ")); |
| 1752 | client.print(path); |
| 1753 | client.println(F(" not found.")); |
| 1754 | return false; |
| 1755 | } |
| 1756 | |
| 1757 | // Calculate year, month, day, hour, minute and second |
| 1758 | // from first parameter sent by MDTM command (YYYYMMDDHHMMSS) |