How to use ftp commands ?
Posted: Sat Aug 17, 2013 5:06 pm
Hi everybody !
I'm trying to read some file attributes (such as the modification date/time in seconds) of a file located on a remote server, and I assume I could do that using the libURLftpCommand function (but may be there is a simpler way...).
However I'm not familiar at all with the ftp commands, although I've tried to read the RFC 959 document, particularly section 4.1.3, as recommended in the LiveCode Dictionary.
My questions are:
1. What is the exact syntax of ftp commands to be sent in order to:
a) specify a directory on the remote server (CWD command ?),
b) obtain an information similar to "the detailed files" (LIST command ?)
2. Is there a way to retrieve this information only for one file by giving also its file name ?
Thanks for any assistance...
I'm trying to read some file attributes (such as the modification date/time in seconds) of a file located on a remote server, and I assume I could do that using the libURLftpCommand function (but may be there is a simpler way...).
However I'm not familiar at all with the ftp commands, although I've tried to read the RFC 959 document, particularly section 4.1.3, as recommended in the LiveCode Dictionary.
My questions are:
1. What is the exact syntax of ftp commands to be sent in order to:
a) specify a directory on the remote server (CWD command ?),
b) obtain an information similar to "the detailed files" (LIST command ?)
2. Is there a way to retrieve this information only for one file by giving also its file name ?
Thanks for any assistance...