I'm developing an Android app for a Samsung Camera, running Jelly Bean, which has to upload images to a [local] ftp server.
Now, before I upload, I want to double check that the prefs are ok and an ftp connection can be established. The gLocation always points to a folder to upload to.
Code: Select all
put "ftp://" & gUser & ":" & gPWD & "@" & gLocation into extFTPURL
java.io.IOException: Unable to connect to server: Unable to retrieve file: 550
If I change the code to check on the ftp for an test file like:
Code: Select all
put "ftp://" & gUser & ":" & gPWD & "@" & gLocation & "test.txt" into extFTPURL
Does anyone know if it's possible to make it behave with the folder as it does with the test file, ie. if the folder's there, continue copying. Is there a known reason why a folder should throw an error even if it's there? Or am I using the wrong code to check for the existence of a folder?
Many thanks,
Bert