Mapping FTP and SFTP as Network Drive in Windows programmatically (Network redirector)

Bill Kary picture Bill Kary · Sep 19, 2011 · Viewed 7.6k times · Source

I have been assigned an internal task that i need to write a Windows App in C# that, when user input their username and password, Windows magically map the FTP or SFTP folder as a network drive.

I have go through some research and seems "Network Redirector" is the answer of my question.

I am not very familiar with windows thingies, can anyone tell me if this is the right direction? Or you have better clues?

Thanks.

Answer

Eugene Mayevski 'Callback picture Eugene Mayevski 'Callback · Sep 19, 2011

You need to create a virtual file system backed by FTP or SFTP server. This can be done using our Callback File System library (FTP or SFTP part can be accomplished using our other product, SecureBlackbox). There also exists Dokan library, which attempts to mimic FUSE on Windows and create a virtual disk.

If you can go with an end-user solution, we implemented free SFTP Net Drive application that uses our Callback File System and maps SFTP server to a virtual drive.