RETR on folder brings 550

0 votes
asked Jan 14, 2013 by Uwe Keim (1,070 points)
edited Mar 13, 2013

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/CMS_DATA
213.083.063.051.00021-192.168.147.063.55713: 550 Could not open input file: Operation not permitted

"CMS_DATA" 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
answered Jan 14, 2013 by Lukas Matyska (60,730 points)
edited Mar 13, 2013
 
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.

commented Jan 14, 2013 by Uwe Keim (1,070 points)
edited Jan 14, 2013

I'll do it, thanks. Just updated my answer with the mentioning of the Ftp.BeginDownload method.

commented Jan 14, 2013 by Uwe Keim (1,070 points)
edited Jan 14, 2013

Email sent. Thanks for your help!

commented Mar 13, 2013 by Uwe Keim (1,070 points)
edited Mar 13, 2013

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

...