SOLVED - how to create a folder on a server using ftp?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
admin12
Posts: 412
Joined: Wed May 11, 2011 9:47 am

SOLVED - how to create a folder on a server using ftp?

Post by admin12 » Wed Jul 27, 2011 4:47 pm

I need to auto-create a file folder on a file server (already set up) based on the user's first and last name.

How would I do this?

I have already read through the ftp tutorial and got it working - but I need to create the folder first and then upload files to it.

How would I do this?

Mike
Last edited by admin12 on Thu Jul 28, 2011 8:33 pm, edited 1 time in total.

karmacomposer
Posts: 361
Joined: Wed Apr 27, 2011 2:12 pm

Re: how to create a folder on a server using ftp?

Post by karmacomposer » Wed Jul 27, 2011 5:34 pm

It's me, but as my original username. Admin12 was assigned to me by runrev for the summer academy.

To add, I have the two fields set up - fldFirstName and fldLastName,

I know that the two together woulkd be:

put the text of field "fldLastName" &space & the text of field "fldFirstName" into FullName

However, how do I now create a FOLDER (the name of which will be FullName) on my file server using ftp?

Mike

admin12
Posts: 412
Joined: Wed May 11, 2011 9:47 am

Re: how to create a folder on a server using ftp?

Post by admin12 » Wed Jul 27, 2011 7:00 pm

anyone?? I really need help with this to make the database work.

Thanks in advance.

Mike

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Re: how to create a folder on a server using ftp?

Post by SparkOut » Wed Jul 27, 2011 7:47 pm

Assuming you are using libURL for the ftp commands you should be able to

Code: Select all

put "MKD /ftproot/folderpath/" & FullName into tFtpCmd
get libURLftpCommand(tFtpCmd,"yourFtpHost","username","password")
you can append the port number to the hostname if you aren't using the default port of 21 for ftp. Obviously adjust the path in the tFtpCmd and the hostname and username and password!

admin12
Posts: 412
Joined: Wed May 11, 2011 9:47 am

Re: how to create a folder on a server using ftp?

Post by admin12 » Thu Jul 28, 2011 8:32 pm

Thank you for your help.

This is now solved.

Mike

Post Reply