I need to rename/move a file to a different folder after downloading.
When I log into the customer's FTP site via the url, user, password it put in into a particular folder.
I can download these files using the URI but I cannot Rename (Move) into a different folder (i.e. DONE). I get a
The remote server returned an error: (550) File unavailable (e.g., file not found, no access
using the FTP Class and FTPClient.
Please tell me how this can be done without using 3rd party software.
The issue seems to be sending the URI out with
ftp://nnn.nnn.nnn.nnn/x.txt
when in fact we are in a folder based on the user ID home folder.
i.e. ftp://nnn.nnn.nnn.nnn/user/x.txt
Just don't know how to get around this.
Please help.