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; }
/** Make a subdirectory in the current working directory. * * \param[in] path A path with a valid 8.3 DOS name for the subdirectory. * * \param[in] pFlag Create missing parent directories if true. * * \return The value one, true, is returned for success and * the value zero, false, is returned for failure. */ bool SdFat::mkdir(const char* path, bool pFlag) { SdFile sub; return sub.mkdir(&cwd_, path, pFlag); }