Quote:
|
Originally Posted by twillster
Don't you suppose though that if you just provide the multi-file upload similar to their multi-download it shouldn't be that bad. I haven't dug into libgphoto2 yet but doesn't the get_all_files function simply pulls all files from a single directory. I don't know that it traverses all other directories within itself...
|
As I understand the code, get_all_files calls for_each_file (passing the current camera context, including target folder on the camera), with a pointer to the save_file_to_file function. The thing that scared me off was the fact that for_each_file gets the list of available files using gp_camera_folder_lis t_files, which uses the current camera context. There doesn't seem to be an equivalent list_files function for use on the local filesystem (though I suppose one could implement one). Also, the save_file_to_file function would need to be reimplemented, I think (as it uses gp_camera_save_file_ to_file, which seems to be only a downloading function).
Again, it looks like it's a lot easier to download with gphoto than it is to upload.
Of course, I'm not absolutely positive about any of this. It may be a lot easier than I'm making it out to be.