MCPcopy Create free account
hub / github.com/BruceDevices/firmware / createFolder

Function createFolder

src/core/sd_functions.cpp:334–342  ·  view source on GitHub ↗

** Function name: createFolder ** Description: create new folder ***************************************************************************************/

Source from the content-addressed store, hash-verified

332** Description: create new folder
333***************************************************************************************/
334bool createFolder(FS fs, String path) {
335 String foldername = keyboard("", 76, "Folder Name: ");
336 if (foldername == "\x1B") return false;
337 if (!fs.mkdir(path + "/" + foldername)) {
338 displayRedStripe("Couldn't create folder");
339 return false;
340 }
341 return true;
342}
343
344/**********************************************************************
345** Function: readLineFromFile

Callers 1

loopSDFunction · 0.85

Calls 2

displayRedStripeFunction · 0.85
keyboardFunction · 0.70

Tested by

no test coverage detected