Hello, is there any progress on this report? The way gphoto2 behaves is quite obviously wrong:
--list-files hands out a list of Number-filename pairs. both --get-file and --delete-file expect these *numbers* as argument. "--get-file 15" works "--delete-file 15" does not. The following changes could be made to get consistent behavior. ---------- #1. Change --get-file and --delete-file to use filenames (with path) as argument. #2 Change --delete-file to work. ---------- #1 is probably not doable as it breaks backwards compability. Afaict #2 would be done by setting -R to yes by default. (Internally, as pointed out previously "recurse" has no meaning for a command that does not deal with paths.) In case these arguments are not striking for you please apply the attached patch to the manpage. thanks, cu andreas -- "See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf, fuhggvat qbja gur juveyvat tha. Neal Stephenson in "Snow Crash"
--- - 2005-10-02 17:53:57.548685000 +0200 +++ /tmp/gphoto21.gz.9592 2005-10-02 17:53:57.546160320 +0200 @@ -170,6 +170,10 @@ \fB\-\-delete\-files\fR \fIRANGE\fR Delete files given in range\&. +As pictures are usually not stored in the top-level directory +\fB\-\-delete\-files\fR will not work at all unless \fB\-R\fR is also +specified\&. + .TP \fB\-\-delete\-all\-files\fR Delete all files in folder\&.