Logo Search packages:      
Sourcecode: libgphoto2 version File versions

int gp_filesystem_reset ( CameraFilesystem fs  ) 

gp_filesystem_reset: : a CameraFilesystem

Resets the filesystem. All cached information including the folder tree will get lost and will be queried again on demand.

Return value: a gphoto2 error code.

Definition at line 460 of file gphoto2-filesys.c.

Referenced by gp_camera_exit(), and gp_filesystem_free().


      CR (gp_filesystem_lru_clear (fs));

      CR (delete_all_folders (fs, "/", NULL));
      CR (delete_all_files (fs, 0));

      fs->folder[0].folders_dirty = 1;
      fs->folder[0].files_dirty = 1;

      return (GP_OK);

Generated by  Doxygen 1.6.0   Back to index