Why rebex FTP doesn't give directory listing for path too long scenarios?

0 votes
asked May 8, 2015 by ganeshspy (900 points)

Why rebex FTP doesn't give directory listing for path too long scenarios?
Whereas Windows explorer does give listing for all such scenarios.

Applies to: Rebex FTP/SSL

1 Answer

+1 vote
answered May 8, 2015 by Lukas Pokorny (100,910 points)

This is most likely a limitation of your FTP server.

Your FTP server (like many other software) is probably using Windows API functions in a way that limits the maximum path length to 260 characters (see this MSDN article for details) and when Rebex FTP asks it to send a directory listing for a path that is too long, it rejects the request. On the other hand, Windows Explorer is using API calls in a way that makes it possible to handle paths of up to 32767 characters.

To make sure this explanation is correct, please create a communication log using Ftp object's LogWriter property (see this article for details) and post it here or mail it to us for analysis.

...