list subdirectory in ftp site

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
timle
Pro Scripter
Posts: 96
Joined: Tue Apr 20, 2004 5:53 am

list subdirectory in ftp site

Post by timle » Thu Sep 18, 2008 11:13 pm

When I use this command it list the whole ftp site, is there a way to tell it to list just a subdirectory in the ftp site

thanks



FTPGetDirList>file.website.com,Username,Password,21,%dir1%\dirsize.txt,*,D

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Fri Sep 19, 2008 1:12 am

Use the path to the subdirectory as the HOST_FILE_SPEC e.g /web/myfiles/ (instead of that *), that works for me. Note that it will only list the files that are in that subdirectory, and the only the names of any lower subdirectories.

You should try both the D and L options, they give different outputs.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts