0 votes
by (1.2k points)
edited

Doing an RETR command on a folder worked in all our test cases until a customer came up with the following error:

192.168.147.063.55713-213.083.063.051.00021: RETR /media/Scripting/ServerSideScripting/PHP/CMSDATA
213.083.063.051.00021-192.168.147.063.55713: 550 Could not open input file: Operation not permitted

"CMSDATA" is an existing folder on the server.


Reading through various FTP documentation, I get the feeling, that RETR is only valid on files but not on folders.


Any idea on how to solve this?


Update 1


Sorry, I forgot to mention that I am using the Ftp.BeginDownload method which generates the RETR command.

Applies to: Rebex FTP/SSL

1 Answer

+1 vote
by (70.2k points)
edited
 
Best answer

RETR command is really valid on files only. If the component sends RETR command on a folder it is a bug in the component or the server reports that folder as file.

Can you please send us the communication log to support@rebex.net (use Debug level)? With the log we should be able to determine cause of the problem. How to create communication log is described here.

by (1.2k points)
edited
I'll do it, thanks. Just updated my answer with the mentioning of the Ftp.BeginDownload method.
by (1.2k points)
edited

Email sent. Thanks for your help!

by (1.2k points)
edited

For the records: A new version from Rebex helped me.

...