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

Feature request: allow only valid file types #28

Open
felciano opened this issue Dec 29, 2018 · 1 comment
Open

Feature request: allow only valid file types #28

felciano opened this issue Dec 29, 2018 · 1 comment

Comments

@felciano
Copy link

Given that there are upload limits using the Google Photos API, it would be nice to avoid uploading files that are known to be invalid file types. An example of this is .XMP files that are created when exporting a folder or album from Aperture, which one would then like to upload to Google Photos using gpup.

This could either be via an extensible list of file types (suffixes), or a simpler switch (e.g. --only-upload-known-media-types) if it is possible to pre-identify the filetypes that Google Photos accepts.

@jpg0
Copy link

jpg0 commented Jan 18, 2019

FYI you can use either of the two PRs I made (#30, #31) to achieve this if you need now, by specifying the file types you want, either:

gpup --inc "\.jpg$" my_directory

or

find --name \*.jpg | gpup -

or you could even choose to exclude types that you don't want:

gpup --exc "\.XMP$" my_directory

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