FTPGetDriList assistance with file spec

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

FTPGetDriList assistance with file spec

Post by kpassaur » Fri Jun 10, 2011 2:21 pm

The help file says:

Type can be either D or L, where D obtains a full directory listing, including directories, subdirectories and their contents. L creates a simple file list, containing just filenames matching the file spec.

And the example is

FTPGetDirList>ftp.domain.com,anonymous,[email protected],21,c:\temp\readme.txt,*,D

When I use the Host_File_Spec of just a "*" as in the example I get a list of files and directories of just that folder not all folders and subfolders.

So I tried a *.* and got just the list with no directories (what the "L" switch does)

I was expecting somthing like the Dos Dir /S command which lists all files and subfolders.

Ideally I would just like a list of all folders and sub folders and sub folders of the sub folders, is there a file spec like that?

Or, to get all directories and subdirectories do I have to get this list check a line for a then get that directory and do it again and again. To me is seams this would be something that was somewhat common and there would be a file spec for it.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Jun 10, 2011 2:45 pm

You're asking for more than what FTP provides. And don't forget that FTP doesn't know what kind of OS/FTP server is on the other side and can only blindly pass it the commands and receive whatever it throws back. You would have to implement this yourself.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

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