lib/fatfs_glue.c
/*
 * mkdir_fs_node - Remove the node from the filesystem.
 *
 * @path - the full absolute path (that contains the mount path)
 * @mode - the creation mode
 *
 * This function creates a new directory in the mounted FAT file system.
 */
Remove the node from the filesystem.
@path - the full absolute path (that contains the mount path)
@mode - the creation mode

This function creates a new directory in the mounted FAT file system.
Remove the node from the filesystem . @path - the full absolute path ( that contains the mount path ) @mode - the creation mode This function creates a new directory in the mounted FAT file system .
static int mkdir_fs_node(const char *path, mode_t mode)
{
  int mnt_path_len = strlen(g_mounted_fs->mount_path);
  if (mnt_path_len > strlen(path)) {
    return -EINVAL;
  }
  path += mnt_path_len;
  FRESULT ret = f_mkdir(path);
  if (ret == FR_OK) {
    return 0;
  }
  return -ENOSYS;
}
static int mkdir_fs_node ( const char * path , mode_t mode ) { int mnt_path_len = strlen ( g_mounted_fs -> mount_path ) ; if ( mnt_path_len > strlen ( path ) ) { return - EINVAL ; } path += mnt_path_len ; FRESULT ret = f_mkdir ( path ) ; if ( ret == FR_OK ) { return 0 ; } return - ENOSYS ; }
mkdir_fs_node - Remove the node from the filesystem.
mkdir_fs_node - Remove the node from the filesystem .