On these lines: https://github.com/xreef/SimpleFTPServer/blob/40599eae81e7fd7e604f38f14a76af1dd1043278/FtpServer.cpp#L1886 https://github.com/xreef/SimpleFTPServer/blob/40599eae81e7fd7e604f38f14a76af1dd1043278/FtpServer.cpp#L2085 I fixed file modification date on my ESP32 FTP server by replacing `#elif ESP32` with `#elif defined(ESP32)`.