topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Sunday December 15, 2024, 6:18 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Generate List of Files on FTP  (Read 5335 times)

blackcat

  • Participant
  • Joined in 2007
  • *
  • default avatar
  • Posts: 62
    • View Profile
    • Donate to Member
Generate List of Files on FTP
« on: March 18, 2008, 11:41 AM »
hello. I've been spending hours of time searching for this kind of program today but found nothing about it. I need a program that can generate simple list of all files on my ftp server. Any idea is appreciated.  :)

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
Re: Generate List of Files on FTP
« Reply #1 on: March 18, 2008, 01:26 PM »
What type of access do you have to the server? That is the determining factor.

For example, if it is a *nix box and you have SSH access, then pipe a recursive file listing to a text file.

Or if you only have FTP access, then you have to spider the tree and compile a directory listing. A script based around wget and ls should get you what you need.

What are your options?

blackcat

  • Participant
  • Joined in 2007
  • *
  • default avatar
  • Posts: 62
    • View Profile
    • Donate to Member
Re: Generate List of Files on FTP
« Reply #2 on: March 18, 2008, 06:40 PM »
tinjaw, just ftp access.

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
Re: Generate List of Files on FTP
« Reply #3 on: March 18, 2008, 07:09 PM »
Putting aside for the moment that such a program, can be written, because it can  :P, why do you want this? How are you going to use it?

I ask because it will fundamentally determine how such a program would work. I mean, what would you do with a listing of a thousand files that went ten sub directories deep? What purpose would it serve?

For example, do this. Open a command prompt and run this.

dir c:\windows /S /B > c:\filelist.txt

Wait about 15 seconds and then open up the 1+ MB file it produces (c:\filelist.txt). What good is it?

blackcat

  • Participant
  • Joined in 2007
  • *
  • default avatar
  • Posts: 62
    • View Profile
    • Donate to Member
Re: Generate List of Files on FTP
« Reply #4 on: March 18, 2008, 07:29 PM »

dir c:\windows /S /B > c:\filelist.txt

this is exactly how i want the list looks like  ;D just filenames with their full path. this list is just for record of files i already uploaded on the ftp.


edit: i must tell you that my ftp login id is in this format : [email protected]
« Last Edit: March 18, 2008, 07:55 PM by blackcat »