Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--recurse downloads all files into same dir #620

Open
iljah opened this issue Jan 1, 2024 · 2 comments
Open

--recurse downloads all files into same dir #620

iljah opened this issue Jan 1, 2024 · 2 comments
Assignees

Comments

@iljah
Copy link

iljah commented Jan 1, 2024

Describe the bug

Phone directory /store_00010001/DCIM has several subdirs with images but running
gphoto2 --get-all-files --folder /store_00010001/DCIM downloads all images into same dir discarding dir structure.

Name the camera

Not camera specific

libgphoto2 and gphoto2 version

gphoto2 2.5.27 gcc, popt(m), exif, no cdk, no aa, jpeg, readline
libgphoto2 2.5.30 standard camlibs, gcc, no ltdl, EXIF
libgphoto2_port 0.12.1 iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi, gcc, no ltdl, EXIF, USB, serial lockdev locking

To Reproduce

See above

@msmeissn
Copy link
Contributor

msmeissn commented Jan 1, 2024

yes, currently it is implemented this way.

you could use the --filename option to specify a directory based storage.

gphoto2 --get-all-files --folder /store_00010001/DCIM --filename=""%F/%f.%C"

(untested)

@msmeissn msmeissn self-assigned this Jan 1, 2024
@iljah
Copy link
Author

iljah commented Jan 1, 2024

Thanks, that seems to work but I tought everything would be relative to /store_00010001/DCIM because of --folder, now filenames include also .../DCIM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants