Do shell script"" commmand for Server

Hey Guys,

I don’t write shell commands, but I need to write 2 separate (do shell script"") commands to add to a script in progress to do the following:

  1. Return a list of all folders within my folder “subfolder2” on my ftp server
  2. Add a new folder to my “subfolder2” on my ftp server

I’m assuming I would start with the basics below:

set ftp_path to "/subfolder/subfolder2/"
set ftp_name to "username"
set ftp_pw to "xxxxx"
set ftp_server to "[url=ftp://ftp.mywebsite.com]ftp.mywebsite.com[/url]"

Or if this can be accomplished without a shell command, that would be even better. Server scripting is just over my head.