ME310G1/ME910G1/ML865G1 AT Commands Reference Guide
80617ST10991A Rev.4 Page 504 of 545 2020-04-15
3.21.9. AT#M2MLIST - M2M File System List
This command lists the contents of a folder in the File System.
AT#M2MLIST[=<path>]
Execution command reports the list of directories and files stored in current directory of the file
system (see #M2MCHDIR for current path) or in path specified by <path>. The report is shown in
Additional info section.
Parameter:
can be:
• full directory path if starting with "/"
• relative directory path name
• directory name (in current directory)
Here is the report format:
[<CR><LF>#M2MLIST: <.>
<CR><LF>#M2MLIST: <..>]
[<CR><LF>#M2MLIST: <<dir_name
1
>>...
<CR><LF>#M2MLIST: <<dir_name
n
>>]
[<CR><LF>#M2MLIST: "<file_name
1
>",<size
1
>...
<CR><LF>#M2MLIST: "<file_name
n
>",<size
n
>]
directory name, string type delimited by characters
'<' and '>' (max 64 characters, case sensitive).
file name, quoted sting type (max 64 characters,
case sensitive).
Maximum full directory length is 128 chars, maximum folder name is 64 chars.
If <path> is not present an error code is reported.
<path> is case sensitive.
<path> can be equivalently enclosed on quote or not.
Path separator must be "/".
The current directory in M2M file system at every power on is "/mod".