Re: Query on FTP commands - WeOnlyDo Discussion board

Re: Query on FTP commands (General questions)

by wodSupport, Tuesday, August 31, 2004, 15:33 (7389 days ago) @ 2BS

2BS, let me try to answer your questions:

- Is there a read-timeout value? So if blocking is used, will it eventually return if the FTP server hangs?

Yes, there is a Timeout property you can set. If nothing happens for specified number of seconds, timeout expires and error is returned.

- How do you change directory and get the current directory?

You don't! You always use full paths to access the server. So, instead of doing this:
CD /temp
RETR filename

you would use this:
Ftp.GetFile /temp/filename

and wodFtpDLX will internally do all neccessary operations. SFTP protocol doesn't even support changing directory - so we decided to use same approach with other protocols too (so that component is fully transparent in usage for all supported protocols).

- Can you use SITE commands, e.g. CHMOD

Yes, indirectly. You should use RawSend method, and then catch response with FTPReply event.

- If the modification date & time for a file is changed, and the server supports MDTM set, will the date & time be set?
No, it will not. But we're open to suggestions on adding new features. So, if you need this - we can add it (free of charge).

Regards,
Kreso


Complete thread: