[gphoto-features] [ gphoto-Feature Requests-2866580 ] Delete photos off cameras without full write access

View: New views
1 Messages — Rating Filter:   Alert me  

[gphoto-features] [ gphoto-Feature Requests-2866580 ] Delete photos off cameras without full write access

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Feature Requests item #2866580, was opened at 2009-09-25 13:26
Message generated for change (Settings changed) made by marcusmeissner
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=358874&aid=2866580&group_id=8874

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: camera support
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Chris Veitch (veitcho)
Assigned to: Marcus Meissner (marcusmeissner)
Summary: Delete photos off cameras without full write access

Initial Comment:
Support needs to be added for cameras which support the deleting of pictures and directories, but don't support/allow full write access

An example of this is the Canon EOS 10D, which supports deletion of pictures, but not adding, renaming, etc.
Deletion is supported by proprietary drivers on Windows, and can be achieved by directly using the delete command in libgphoto2

The problem, however, is that programs like the gvfs gphoto2 backend, and even gphoto2 itself, cannon. This is due to check which are done to check for write access.

I believe the solution is to add a new access state: “GP_STORAGEINFO_AC_READDELETE”
and use this for appropriate cameras

an example is in cameralib → canon/library.c
add a new line under line 1104:
(*sinfos)->access = GP_STORAGEINFO_AC_READDELETE


any better ideas/improvements?

----------------------------------------------------------------------

>Comment By: Marcus Meissner (marcusmeissner)
Date: 2009-10-31 19:24

Message:
test tarball is at
http://www.lst.de/~mm/libgphoto2-2.4.7.2.tar.bz2 

will be in the next release.

----------------------------------------------------------------------

Comment By: Chris Veitch (veitcho)
Date: 2009-10-02 01:27

Message:
my mistake, didn't see it before

am currently modifying gvfs backend driver to recognise
GP_STORAGEINFO_AC_READONLY_WITH_DELETE

----------------------------------------------------------------------

Comment By: Marcus Meissner (marcusmeissner)
Date: 2009-10-01 20:53

Message:
applied to trunk canon driver.

----------------------------------------------------------------------

Comment By: Marcus Meissner (marcusmeissner)
Date: 2009-10-01 20:19

Message:
there already is:
        GP_STORAGEINFO_AC_READONLY_WITH_DELETE  = 2     /**< \brief
Storage is Ready Only, but allows Delete.*/

We can set it in the canon driver.

delete should work neithertheless in the gphoto2 commandline tool.

----------------------------------------------------------------------

Comment By: Chris Veitch (veitcho)
Date: 2009-09-27 06:37

Message:
I would be happy to help implement this, although I have only basic C
knowledge

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=358874&aid=2866580&group_id=8874

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
gphoto-features mailing list
gphoto-features@...
https://lists.sourceforge.net/lists/listinfo/gphoto-features