Quote:
Originally Posted by IdOp
2) If you do use the --shell mode, the initialization only happens once, but the shell is fairly primitive so you can't download files by range or pattern. So it only seems good for getting a very small number of files.
|
Quote:
Originally Posted by Oko
That is just not true. Shell is actually quite OK.
|
I have installed the latest versions libgphoto2-2.4.10.1 and gphoto2-2.4.10 from
source. The behavior of the new version in regards to getting files via the gphoto2 shell is the same as I noted above. Specifically, the
get command still only appears to support getting a single file at a time. For example,
Code:
gphoto2: {/usr/local/src/tmp} /store_00010001/DCIM/101_FUJI> ls
...<snip>...
DSCF1617.JPG DSCF1618.JPG DSCF1619.JPG DSCF1620.JPG
DSCF1621.JPG DSCF1622.JPG DSCF1623.JPG DSCF1624.JPG
DSCF1625.JPG DSCF1626.JPG DSCF1627.JPG DSCF1628.JPG
DSCF1629.JPG DSCF1630.JPG DSCF1631.JPG DSCF1632.JPG
DSCF1633.JPG DSCF1634.JPG DSCF1635.JPG DSCF1636.JPG
DSCF1637.JPG DSCF1638.JPG DSCF1639.JPG DSCF1640.JPG
DSCF1641.JPG DSCF1642.JPG DSCF1643.JPG DSCF1644.JPG
DSCF1645.JPG DSCF1646.JPG DSCF1647.JPG DSCF1648.JPG
DSCF1649.JPG DSCF1650.JPG DSCF1651.JPG DSCF1652.JPG
DSCF1653.JPG DSCF1654.JPG DSCF1655.JPG DSCF1657.JPG
DSCF1658.JPG DSCF1659.JPG DSCF1660.JPG DSCF1661.JPG
DSCF1662.JPG DSCF1663.JPG DSCF1664.JPG DSCF1665.JPG
DSCF1666.JPG DSCF1667.JPG DSCF1668.JPG DSCF1669.JPG
DSCF1670.JPG
gphoto2: {/usr/local/src/tmp} /store_00010001/DCIM/101_FUJI> get DSCF1624.JPG
Downloading 'DSCF1624.JPG' from folder '/store_00010001/DCIM/101_FUJI'...
Saving file as DSCF1624.JPG
gphoto2: {/usr/local/src/tmp} /store_00010001/DCIM/101_FUJI> get DSCF162?.JPG
*** Error (-108: 'File not found') ***
So a single file is ok, a wildcard is not supported.
Moreover the man-page and in-shell help use the singular form when describing the
get command:
Quote:
Originally Posted by gphoto2 man
get
Download the file to the current directory.
|
Quote:
Originally Posted by gphoto2 shell help
get Download a file
|
I didn't find any further description of the shell in the gphoto.org documentation. If there is a syntax to get files from within the shell by range or pattern, it would be interesting to know what it is.