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

File Permissions are user only on export #1772

Open
gyansinha opened this issue Dec 30, 2024 · 0 comments
Open

File Permissions are user only on export #1772

gyansinha opened this issue Dec 30, 2024 · 0 comments

Comments

@gyansinha
Copy link

Environment:
osxphotos, version 0.69.2
Python 3.10.14 (main, Mar 20 2024, 03:51:51) [Clang 14.0.0 (clang-1400.0.29.202)]
Python executable: /Users/gsinha/prod/bin/python3.10
macOS 12.7.6, x86_64

The Bug (?)
Exported image files are read/write for user only - creates problems for third-party apps that don't run in user space.

-rw-------@ 1 gsinha  staff  1276483 Dec 28 16:24 IMG_5157.HEIC
#!/bin/bash
/Users/gsinha/.local/bin/osxphotos export /Volumes/OWC/Photos/ --load-config /Users/gsinha/scripts/osxphotos.toml 
[export]
directory = "{exif.camera_make,Generic}/{exif.camera_model,Generic}/{created.year}/{created.month}/{created.dd}"
download_missing = true
#jpeg_ext = "jpeg"
jpeg_ext = "JPG"
only_photos = true
report = "iphoto_rpt.csv"
skip_edited = true
touch_file = true
update = true
ramdb = true
only_new = true
post_command = [ [ "exported", "mv {filepath|shell_quote} {filepath.parent|shell_quote}/{filepath.stem|shell_quote}{filepath.suffix|upper}",],]
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

1 participant