Cannot create folder in remote hosting with create folder

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
alex298
Posts: 101
Joined: Mon May 01, 2006 1:17 pm

Cannot create folder in remote hosting with create folder

Post by alex298 » Tue May 12, 2009 3:27 pm

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
Alex
Nice to meet all of you.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Tue May 12, 2009 3:56 pm

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

alex298
Posts: 101
Joined: Mon May 01, 2006 1:17 pm

Post by alex298 » Wed May 13, 2009 4:02 am

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
Alex
Nice to meet all of you.

Post Reply