コード例 #1
0
ファイル: MemoryCardDevice.cpp プロジェクト: bberg/BrainCam
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;
}
コード例 #2
0
ファイル: SdFat.cpp プロジェクト: algedi/KUIopenAVR
/** 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);
}