C# FTP with CD Disabled

Instead of using ftp://server/path as the uri, try ftp://server/%2fpath/.

The added %2f" is just an escaped /, adding this will make C# treat the whole path as absolute. Or else C# will login to ftp://server/ with the username, go to the user's home folder, then cd to your specified path.

你可能感兴趣的:(disabled)