Re: General questions - WeOnlyDo Discussion board

Re: General questions (General questions)

by MJLeaver, Wednesday, January 05, 2011, 10:37 (5072 days ago) @ MJLeaver

Sorry about the previous post. The reply got screwed up.

By default, if MLST is available on server, component will use it instead of LIST. As you already noticed, you can simply use PreTranslateCommand and switch to using LIST.

The problem with that is that I can no longer get the results from DirItems and so need to parse the results myself. There doesn't seem to be any method that can do the parsing for me (as it would if it had sent a LIST command itself).

As for using Binary mode along with listing directories, I'm not sure how file size is related to transfer mode in which listing is requested.

The file size is definitely related to the transfer mode with the FTP servers some of our clients have used in the past. If you use ASCII mode then the size of a file may be returned as the ASCII size and not the actual real size. If BINARY mode is used then they will all always return the actual real size of the file. We know for sure that some FTP servers will return a different value for the SIZE command based on the transfer mode.


Complete thread: