| m0020 |
List SD Card |
List the contents of the SD Card. |
thinkyhead |
SDSUPPORT |
sdcard |
|
|
| Requires [`SDSUPPORT`](/docs/configuration/configuration.html#sd-card) |
|
| tag |
since |
optional |
description |
requires |
values |
| F |
2.0.9.4 |
true |
Only list BIN files. Used by host plugins to facilitate firmware upload. |
CUSTOM_FIRMWARE_UPLOAD |
|
|
| tag |
since |
experimental |
optional |
description |
requires |
values |
| L |
2.0.9 |
true |
true |
Include the long filename in the listing. |
LONG_FILENAME_HOST_SUPPORT |
|
|
| tag |
since |
optional |
description |
requires |
values |
| T |
2.1.2 |
true |
Include the file timestamp in the listing. |
M20_TIMESTAMP_SUPPORT |
|
|
|
| pre |
post |
code |
| List the contents of the SD card |
The firmware will send no other output between "Begin file list" and "End file list." |
> M20
Begin file list
MYFILE.GCO 14129
SUBDIR~1/MORETH~1.GCO 68447
End file list
ok
|
|
| pre |
post |
code |
| List files with long filename (for display) |
This format produces a prettier File Manager in OctoPrint, but the long name is not used in selecting the file to print, nor are folder long names included. |
> M20 L
Begin file list
MYFILE.GCO 14129 MyFile.gcode
SUBDIR~1/MORETH~1.GCO 68447 Sub Directory/MoretHall.gcode
End file list
ok
|
|
| pre |
post |
code |
| List files with file modification timestamp (for display) |
OctoPrint 1.9+ uses the timestamp to display file upload times. |
> M20 T
Begin file list
MYFILE.GCO 14129 0x5515758F
SUBDIR~1/MORETH~1.GCO 68447 0x55195745
End file list
ok
> M20 L T
Begin file list
MYFILE.GCO 14129 0x5515758F MyFile.gcode
SUBDIR~1/MORETH~1.GCO 68447 0x55195745 Sub Directory/MoretHall.gcode
End file list
ok
|
|
|