boolean callback_makeDirPath(SdFile& parentDir, char *filePathComponent, boolean isLastComponent, void *object) { /* */ boolean result = false; SdFile child; result = callback_pathExists(parentDir, filePathComponent, isLastComponent, object); if (!result) { boolean result = child.mkdir(parentDir, filePathComponent); } return result; }
boolean callback_makeDirPath(SdFile& parentDir, char *filePathComponent, boolean isLastComponent, void *object) { /* Callback used to create a directory in the parent directory if it does not already exist. Returns true if a directory was created or it already existed. */ boolean result = false; SdFile child; result = callback_pathExists(parentDir, filePathComponent, isLastComponent, object); if (!result) { result = child.makeDir(parentDir, filePathComponent); } return result; }