lib/fatfs_glue.c
/*
 * unlink_fs_node - Remove the node from the filesystem.
 *
 * @pathname  - the full absolute path (that contains the mount path)
 *
 * This function call in the FAT FS remove function to unlink a file from
 * the media filesystem.
 *
 */
Remove the node from the filesystem.
@pathname  - the full absolute path (that contains the mount path)

This function call in the FAT FS remove function to unlink a file from
the media filesystem.
Remove the node from the filesystem . @pathname - the full absolute path ( that contains the mount path ) This function call in the FAT FS remove function to unlink a file from the media filesystem .
static int unlink_fs_node(const char *pathname)
{
  int mnt_path_len = strlen(g_mounted_fs->mount_path);
  if (mnt_path_len > strlen(pathname)) {
    return -EINVAL;
  }
  pathname += mnt_path_len;
  FRESULT ret = f_unlink(pathname);
  if (ret == FR_OK) {
    return 0;
  }
  return -ENOSYS;
}
static int unlink_fs_node ( const char * pathname ) { int mnt_path_len = strlen ( g_mounted_fs -> mount_path ) ; if ( mnt_path_len > strlen ( pathname ) ) { return - EINVAL ; } pathname += mnt_path_len ; FRESULT ret = f_unlink ( pathname ) ; if ( ret == FR_OK ) { return 0 ; } return - ENOSYS ; }
unlink_fs_node - Remove the node from the filesystem.
unlink_fs_node - Remove the node from the filesystem .