
September 14th, 2011, 06:04 PM
|
|
Registered User
|
|
Join Date: Nov 2008
Posts: 28
Time spent in forums: 6 h 10 m 21 sec
Reputation Power: 0
|
|
|
Couple of FTP questions
Hi
I'm integrating a ftp uploader into a Flash Air project.
It's working well, apart from the fact that I cannot delete more than one file at a time on the server.
I can successfuly delete a file if I specifically name it, but can't make flash delete everything in a given folder...
s.writeUTFBytes("DELE "+remoteFolderStr+"/menu/contact.php\n");
... successfully deletes contact.php, but (and this is after I've added a test file back into the 'menu' dir)...
s.writeUTFBytes("DELE "+remoteFolderStr+"/menu/*.*\n");
...gives me a 550 error...
550 Could not delete public_html/menu/*.*: No such file or directory
I thought the *.* meant 'everything'. If not, is there a way to do it?
The second questions relates to the different ftp server systems that are out there. Is it correct that there are different sets of return codes? I understand that you can prompt the server to see what system it is using, but I was wondering if there is a list somewhere of a) what systems are available, and b) their return codes?
Thanks for your time and help.
Shaun
|