コード例 #1
0
ファイル: SdFat.cpp プロジェクト: algedi/KUIopenAVR
/** Remove a subdirectory from the current working directory.
 *
 * \param[in] path A path with a valid 8.3 DOS name for the subdirectory.
 *
 * The subdirectory file will be removed only if it is empty.
 *
 * \return The value one, true, is returned for success and
 * the value zero, false, is returned for failure.
 */
bool SdFat::rmdir(const char* path) {
  SdFile sub;
  if (sub.open(path, O_READ)) {
    return sub.rmdir();
  }

 fail:
  return false;
}