Skip to content

Docs: directory filter rules - #5040

Merged
albertony merged 1 commit into
rclone:masterfrom
edwardxml:patch-16
Feb 18, 2021
Merged

albertony merged 1 commit into
rclone:masterfrom
edwardxml:patch-16

Conversation

@edwardxml

@edwardxml edwardxml commented Feb 18, 2021 •

Copy link
Copy Markdown
Contributor

What is the purpose of this change?

An attempt to make directory filter rules marginally less confusing inspired by reading
#3375

I think the filter documentation is in step with that commit. The prior position when, with ListR, --exclude /foo/ did not have an equivalent effect to to --exclude /foo/** was not properly explained in the rewrite I did.

The three bullet points identifying when directory recursion optimisation is applied to the listing trouble me. The two prior attempts at putting the code logic into words were as bad. Maybe something closer go code logic should be incorporated?

Was the change discussed in an issue or in the forum before.

No.

Checklist

  • I have read the contribution guidelines.
  • I have added tests for all changes in this PR if appropriate.
  • I have added documentation for the changes if appropriate.
  • All commit messages are in house style.
  • I'm done, this Pull Request is ready for review :-)

@albertony

Copy link
Copy Markdown
Contributor

I think it looks good!

The three bullet points identifying when directory recursion optimisation is applied to the listing trouble me.

I can understand that, but this version is definitely an improvement.

Maybe something closer go code logic should be incorporated?

Not sure I understand what you meant by this.. and if its something you wanted to discuss before merging, or if it was more of a comment? 😳

@edwardxml

Copy link
Copy Markdown
Contributor Author

Not sure I understand what you meant by this.. and if its something you wanted to discuss before merging, or if it was more of a comment? 😳

Just thinking out loud whether there is a better way to present it. The logic has been written different ways round in the past but always ends up rather complex. Ultimately the logic has to be included because it can have a significant effect on transaction fees. I'm happy to see this merged as is.

@albertony

Copy link
Copy Markdown
Contributor

I see. I find it understandable as you made it now. Have read through it several times, and can't think of a better way to describe it.

@albertony
albertony merged commit 7db68b7 into rclone:master Feb 18, 2021
@ivandeex ivandeex mentioned this pull request May 18, 2021
38 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants