#M2MLIST – M2M File System List |
SELINT 2 | |
AT#M2MLIST |
Execution command reports the list of directories names and file names of directories and files currently stored in the M2M file system in the current working directory. In the end reports the available free memory in the current drive. The report is in the format:
[<CR><LF>#M2MLIST: <.> <CR><LF>#M2MLIST: <..>] [<CR><LF>#M2MLIST: <dir_name1>… [<CR><LF>#M2MLIST: <dir_namen>]] [<CR><LF>#M2MLIST: <file_name1>,<size1>… [<CR><LF>#M2MLIST: <file_namen>,<sizen>]] <CR><LF>#M2MLIST: free bytes: <free_mem>
where: <.> current directory <..> upper directory <dir_namen> – directory name, string type delimited by < and > (max 16 chars, case sensitive) <file_namen> – file name, quoted string type (max 16 chars, case sensitive) <sizen> – size of file in bytes <free_mem> – size of available free memory in the current drive in bytes | |
AT#M2MLIST=? |
Test command returns OK result code. | |
Example |
AT#M2MLIST #M2MLIST: <.> #M2MLIST: <..> #M2MLIST: <dir1> #M2MLIST: "M2MAPZ.bin",58044 #M2MLIST: free bytes: 458752
OK |