Logo Search packages:      
Sourcecode: libgphoto2 version File versions

int gp_filesystem_count ( CameraFilesystem fs,
const char *  folder,
GPContext context 
)

gp_filesystem_count: : a CameraFilesystem : a folder in which to count the files : a GPContext

Counts the files in the .

Return value: The number of files in the or a gphoto2 error code.

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

References _CameraFilesystem::folder.

{
        int x;

      CHECK_NULL (fs && folder);
      CC (context);
      CA (folder, context);

      CR (x = gp_filesystem_folder_number (fs, folder, context));

      return (fs->folder[x].count);
}


Generated by  Doxygen 1.6.0   Back to index