FTP help

Started by Torkell,

Torkell

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,


Torkell

Right, I'll give it a try and see if it does that.

Torkell

Nope, doesn't appear to do that. Thanks anyway.

Ralesk

'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

The ls -lR FTP command (or ls -lRa to include hidden files) will give you what you want.

Torkell

#6
Do you want to bet on that, Ralesk?
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>