Author Topic: FTP help  (Read 4482 times)

Torkell

  • Posts: 1169
FTP help
« on: 10 Jul '03 - 19:51 »
You're all nice helpful chaps ;D so hopefully one of you will be able to answer this question:

Do you know of an easy way of generating a full listing of subdirectories and files contained in a certain directory on a FTP server, much like that produced by the DOS "tree" command? If there isn't a simple way of doing it with Windows, or a program which already does it, then it will be yet another thing for me to knock up a utility for.

Thanks,

DanaPaul

  • Posts: 335
Re: FTP help
« Reply #1 on: 10 Jul '03 - 21:06 »
I believe WinFTP can do this for you...

http://www.softtechdesign.com/products/WinFTP/winftp.htm

Torkell

  • Posts: 1169
Re: FTP help
« Reply #2 on: 10 Jul '03 - 21:10 »
Right, I'll give it a try and see if it does that.

Torkell

  • Posts: 1169
Re: FTP help
« Reply #3 on: 10 Jul '03 - 21:13 »
Nope, doesn't appear to do that. Thanks anyway.

Ralesk

  • Posts: 654
Re: FTP help
« Reply #4 on: 12 Jul '03 - 02:54 »
'xcuse me, but TREE only gave a directory structure, not?

as for a DIR like structure (Name, Size, TimeDate), I suggest TotalCommander for an FTP client.  It's quite decent for a [non-Unicode] Windows file manager too.

Ian @ un4seen

  • Administrator
  • Posts: 20437
Re: FTP help
« Reply #5 on: 12 Jul '03 - 13:38 »
The ls -lR FTP command (or ls -lRa to include hidden files) will give you what you want.

Torkell

  • Posts: 1169
Re: FTP help
« Reply #6 on: 12 Jul '03 - 15:43 »
Do you want to bet on that, Ralesk?
Code: [Select]

C:\Documents and Settings\Family>tree /?
Graphically displays the folder structure of a drive or path.

TREE [drive:][path] [/F] [/A]

  /F   Display the names of the files in each folder.
  /A   Use ASCII instead of extended characters.


C:\Documents and Settings\Family>


Ian, thanks. In this case the server prefers "LIST" to "LS".

<edit>WS_FTP timed out - with DOS ftp, using "ls -lR" works. If you were writing an FTP client you would send "LIST" to the server.</edit>
« Last Edit: 12 Jul '03 - 15:46 by BoggyB »