MCPcopy Create free account
hub / github.com/MarlinFirmware/Marlin / ls

Method ls

Marlin/src/sd/cardreader.cpp:358–363  ·  view source on GitHub ↗

List all files on the SD card

Source from the content-addressed store, hash-verified

356// List all files on the SD card
357//
358void CardReader::ls(const uint8_t lsflags/*=0*/) {
359 if (flag.mounted) {
360 root.rewind();
361 printListing(root, nullptr, lsflags);
362 }
363}
364
365#if ENABLED(LONG_FILENAME_HOST_SUPPORT)
366

Callers

nothing calls this directly

Calls 1

rewindMethod · 0.45

Tested by

no test coverage detected