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

--match-mime parameter wih list/pull #498

Closed
xezpeleta opened this issue Nov 27, 2015 · 4 comments
Closed

--match-mime parameter wih list/pull #498

xezpeleta opened this issue Nov 27, 2015 · 4 comments
Assignees
Labels
Milestone

Comments

@xezpeleta
Copy link

Hi, I'm trying to list and download Google Docs documents:

In the documentation (README) I see that the next command should work:

drive list --match-mime xls,docx

Running this command only shows the help, so apparently it doesn't recognize the parameter. Something similar occurs with PULL.

I saw that with -matches works well, but only with standard mimetypes like pdf, png, etc... But if I try to filter with Google Apps documents format it doesn't work.

Is there any way to do this?

Thanks!

@odeke-em
Copy link
Owner

Hello @xezpeleta, thank you for reporting this issue and welcome to drive!

You are right, for some reason "--match-mime" is "--exact-mime"
screen shot 2015-11-27 at 9 04 43 am

PR coming up in a second.

@odeke-em
Copy link
Owner

Hello @xezpeleta, list has always advertised that it supports --match-mime, pull has never done so. This issue is more related to the previous typo so if you want match-mime for pull, please make a separate PR for pull. Please get the latest from master. It should be fixed.

@xezpeleta
Copy link
Author

Thanks @odeke-em, I'll try to do that

Updated: great! now mimetype filtering works well with list -exact-mime,

# List all Google Spreadsheet from my Drive
drive list -recursive -exact-mime application/vnd.google-apps.spreadsheet

I definitely need same thing for pull. I'm gonna take a look to the code.

@odeke-em
Copy link
Owner

odeke-em commented Dec 2, 2015

Closing this issue since it the bug is fixed for --match-mime and pull has never had --match-mime so please make that a separate pull request.

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

No branches or pull requests

2 participants