Logo Search packages:      
Sourcecode: libgphoto2 version File versions  Download package

int gp_filesystem_delete_file_noop ( CameraFilesystem fs,
const char *  folder,
const char *  filename,
GPContext context 

Delete a virtal file from a folder in the filesystem.

fs a CameraFilesystem
folder a folder in which to delete the file
filename the name of the file to delete
context a GPContext
Remove a file from the filesystem. Compared to gp_filesystem_delete_file() this just removes the file from the libgphoto2 view of the filesystem, but does not call the camera driver to delete it from the physical device.

a gphoto2 error code.

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

References CHECK_NULL.

      CameraFilesystemFolder  *f;
      CameraFilesystemFile    *file;

      CHECK_NULL (fs && folder && filename);
      CC (context);
      CA (folder, context);
      /* Search the folder and the file */
      CR (lookup_folder_file (fs, folder, filename, &f, &file, context));
      return delete_file (fs, f, file);

Generated by  Doxygen 1.6.0   Back to index