Technical information
FTP (File Transfer Protocol)
3-444 AT Commands Reference Manual August 5, 2008
+FTPLIST, Request List
This command causes the G24 to request the remote FTP server to send a list, in accordance with
a given parameter.
Notes:
• Parameter is optional. When +FTPLIST command without a parameter is entered,
G24 requests the remote side to return the last requested list.
• The command execution result returns to the user as an unsolicited response
(command mode), as well as a list in data mode.
• When +FTPLIST command is executed, a requested list is being sent to the user when
G24 is in data mode, immediately after +FTPLIST: 2 unsolicited response, but before
+FTPLIST: 1 unsolicited response.
The following table shows the +FTPLIST parameters.
Example
The first example illustrates get list for specific file success case.
AT+FTPLIST="somefile.name"
OK
+FTPLIST: 2
-rw-rw-r-- 1 1001 0 Mar 26 2006 somefile.name
Command
Type
Syntax Response/Action Remarks
Set
+FTPLIST [=<file/directory
name>]
OK
...
+FTPLIST: <result>
<list of directory/files>
...
+FTPLIST: <result>
or
ERROR: <error_code>
Parameter consists of the
file/directory name as
well as the file/directory
path (optional).
The command execution
result return to the user as
an unsolicited response:
0 - operation failed
1 - operation succeeded
2 - data follows
Read
+FTPLIST? ERROR
Not supported
Test
+FTPLIST=? +FTPLIST: (<"file/directory
name">)
OK
Return command format
Table 3-291: +FTPLIST Parameters
<Parameter> Description Range
File/directory name Name of file or directory on the
remote side for list request.
String, max length is 255 octets.