I’m creating an application to synchronize a local folder on my computer with a FTP server.
Since I don’t wan’t to access the FTP server directly over it’s address, because it would be really complicated, I wan’t to map the server temporary to a network folder so that my synchronization algorithm can work on it like on a local folder.
Is there something like this:
//Map the server to the specified path
FtpMapper.MapFtpServer("ftp://myserver/", "username", "password", "M:\\");
DirectoryInfo info = new DirectoryInfo("M:\\");
/* Do some work on the directory */
FtpMapper.UnmapFtpServer();
There isn’t such a library, as far as I know.
This requires a windows filesystem driver that understands FTP commands and a .NET wrapper over it.
I have seen such drivers (without a wrapper) as part of commercial FTP suites, but nothing open source or free.