-
Notifications
You must be signed in to change notification settings - Fork 426
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
list: fix --trashed to return all items in the current working directory #700
Conversation
Apologies for the late reply, I'll comment more on this PR in about 9 hours when I get back home. |
@@ -142,11 +142,7 @@ func (r *Remote) changes(startChangeId int64) (chan *drive.Change, error) { | |||
func buildExpression(parentId string, typeMask int, inTrash bool) string { | |||
var exprBuilder []string | |||
|
|||
if inTrash || (typeMask&InTrash) != 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha I see, so this simplifies the trashed condition checks. Does it work alright with list
as well as --trashed
in nested directories, not just root?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, list
and list --trashed
now work in both root and nested directories. Please test this yourself.
What broke Second, |
Dope! Thanks @njbbaer. Just one comment here, would you mind updating your commit message to reflect the change with something like this list: fix --trashed to return all items in the current working directory
Fixes #695
<Any description of the solution if you'd like to make one> |
Fixes #695 1. List trashed uses path resolver FindByPath instead of FindByPathTrashed. 2. Expressions by buildExpression always include parent path.
Thanks for the tip. I've updated my commit message. |
Oh, my bad, I meant in the actual git commit like this $ git commit --amend and then when it opens up the editor list: fix --trashed to return all items in the current working directory
Fixes #695
<Any description of the solution if you'd like to make one> and after force push it to overwrite this current commit. $ git push origin <branch_name> -f |
That's what I did. I changed both the commit message and the pull request title. |
Awesome. Thank you. LGTM! Merging in. |
Fixes #695.