I am looking for any script that will recursively navigate ftp site, collecting directory and file structure. The ultimate purpose is to compare file listings from day to day, looking for new files of specific file type.
I need to start at a given point in the tree and gather all the structure from there to the bottom.
Any tips?
Recursively navigate ftp site, collecting structure
Moderators: JRL, Dorian (MJT support)
FTPGetDirList and subdirectories
Will FTPGetDirList normally spider thriugh subdirectories as well -
Help file said "D obtains a full directory listing, including directories, subdirectories and their contents. " but I am only seeing ONE level .. is this true I would have to write further code to explore using the text file generated ...
is there a trick to getting FTPGetDirList to bring in subdirectories as well?
Help file said "D obtains a full directory listing, including directories, subdirectories and their contents. " but I am only seeing ONE level .. is this true I would have to write further code to explore using the text file generated ...
is there a trick to getting FTPGetDirList to bring in subdirectories as well?
-
- Automation Wizard
- Posts: 1101
- Joined: Fri Jan 07, 2005 5:55 pm
- Location: Somewhere else on the planet
I confirm your result, with the D option it's only showing the (names of the) subdirectories of the current directory, which isn't what I would expect from the Help example's "a listing of the entire contents of the server".
The L option does show more, but still not all the way down the tree.
I tested on my Apache server, not sure if it would be different on IIS.
If you really want to get into spidering then look at wget for windows which is a command line tool that can very conveniently be automated with Macro Scheduler. Be aware that spidering a site can be a bandwidth hog so be sure that what you are doing is OK with the webmaster.
The L option does show more, but still not all the way down the tree.
I tested on my Apache server, not sure if it would be different on IIS.
If you really want to get into spidering then look at wget for windows which is a command line tool that can very conveniently be automated with Macro Scheduler. Be aware that spidering a site can be a bandwidth hog so be sure that what you are doing is OK with the webmaster.