Re: Remove directory syntax.
Marcus Meissner <[email protected]> Sat, 5 Sep 2020 09:34:55 +0200
| Newsgroups | gmane.comp.multimedia.gphoto.user |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Sep 04, 2020 at 01:41:33PM +0100, Steve Cookson wrote:
> Hi Guys,
>
> I am struggling with the remove directory syntax on Canon (both 350D and
> 450d) when it worked fine on Nikon D5000.
>
> Here's what I tried:
>
> gphoto2 -rR=100CANON -f=/store_00020001/DCIM/
>
> *** Error (-107: 'Directory not found') ***
>
> gphoto2 -R -r=100CANON -f=/store_00020001/DCIM/
>
> *** Error ***
> PTP General Error
> *** Error (-1: 'Unspecified error') ***
>
> gphoto2 -r=100CANON -f=/store_00020001/DCIM/
>
>
> *** Error ***
> PTP General Error
> *** Error (-1: 'Unspecified error') ***
>
> gphoto2 --rmdir=100CANON --folder=/store_00020001/DCIM/
>
>
> *** Error ***
> PTP General Error
> *** Error (-1: 'Unspecified error') ***
>
> /usr/bin/gphoto2 --rmdir='/store_00020001/DCIM/100CANON'
>
>
> *** Error ***
> PTP General Error
> *** Error (-1: 'Unspecified error') ***
>
> gphoto2 --auto-detect
> Model Port
> ----------------------------------------------------------
> Canon EOS 450D (PTP mode) usb:001,014
>
> Any ideas?
As for syntax, use e.g.:
gphoto2 -f /store_00010001/DCIM --rmdir 897_FUJI
EOS M100:
$ gphoto2 -L
There is no file in folder '/'.
There is no file in folder '/store_00010001'.
There is no file in folder '/store_00010001/DCIM'.
There is no file in folder '/store_00010001/DCIM/896___01'.
There is no file in folder '/store_00010001/DCIM/897_FUJI'.
$ gphoto2 -f /store_00010001/DCIM --rmdir 897_FUJI
$ gphoto2 -L
There is no file in folder '/'.
There is no file in folder '/store_00010001'.
There is no file in folder '/store_00010001/DCIM'.
There is no file in folder '/store_00010001/DCIM/896___01'.
$
Then on my EOS 750D
$ gphoto2 -f /store_00020001/DCIM --rmdir 896___01
*** Error ***
PTP Partial Deletion
$
So I would say that directory deletion is not really the primary welltested
functionality of the cameras, it might work or not.
Ciao, Marcus