This turned out to be a problem only with certain ProFTPD server (namely versions 1.3.2x and older which require the filename with spaces to be quoted when issuing the MLST command.)
However, in newer versions of ProFTPd (1.3.3 and newer) the quoting workaround cannot be applied anymore.
We have improved the MLST quoting workaround to handle both scenarios based on the ProFTPD server version. The improved workaround is available as part of version 2014R3 version of Rebex FTP/SSL.
Hello, I have tried this piece of code (it creates and deletes a file which has whitespace in its name):
Ftp ftp = new Ftp();
ftp.PutFile(new MemoryStream(), "File Name.txt");
ftp.Delete("File Name.txt", TraversalMode.MatchFilesShallow);
And it works fine with Rebex FTP (2012R3). I have tested it against following FTP servers:
- MS IIS 6.0 FTP
- Titan FTP
If it does not work with your FTP server, could you please create a communication log as described in this article and either post it here or send it to email@example.com?
In such case, would it be possible to try whether a third party FTP client (e.g. FileZilla) is able to delete the file or not, and if it is, please create log from FileZilla client and send it to us.