Page 1 of 1
Cannot create folder in remote hosting with create folder
Posted: Tue May 12, 2009 3:27 pm
by alex298
Hello,
I wish to create a new folder (test) in my remote hosting account. I try to use:
It doesn't work!
Please help.
Thanks and best regards
Posted: Tue May 12, 2009 3:56 pm
by Mark
Of course, it doesn't work, Alex. Create folder isn't an FTP command! It works on the local system only.
Usually, if you create a file on an FTP server, all folders in the file hierarchy are created automatically. So, try that first.
If the folders on your server aren't created automatically, you will need to use the FTP command to create a directory. The FTP command you need is probably MKD and you can use the libUrlFtpCommand command to execute FTP commands on the server.
You can read more about libUrlFtpCommand in the docs.
Best regards,
Mark
Posted: Wed May 13, 2009 4:02 am
by alex298
Dear Mark,
Thanks again for your information!
I read the libUrlFtpCommand doc, your guidelines, and do a few trials. I can create a new directory on the remote server now.
get libURLftpCommand("MKD" && tPath & "/test" , myDomain.com, userName, tPassword)
Best regards