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

ls shell-like wildcards #194

Closed
wants to merge 6 commits into from
Closed

ls shell-like wildcards #194

wants to merge 6 commits into from

Conversation

jsuchan-reef
Copy link

@jsuchan-reef jsuchan-reef commented Aug 11, 2023

requires reef-technologies/b2-sdk-python#302 to be merged first

Since this task is quite big, I split it into multiple PRs

Changes ls

  • Drop --recursive option in b2 ls.
  • Make b2 ls show an error and exit with non-0 status code if the directory doesn’t exist.
  • Allow *, **, ? ,[] ,{} globs/patterns in b2 ls, globbing should work similarly to bash globs. Allow escaping special symbols with backslash \.
  • Allow using more conventional -l flags with b2 ls

Changes rm

  • Make b2 rm show an error and exit with non-0 status code if the directory doesn’t exist.
  • Allow using more conventional -r, with b2 rm.
  • Allow *, **, ?, [] ,{} globs/patterns in b2 rm, globbing should work similarly to bash globs. Allow escaping special symbols with backslash \.

@jsuchan-reef jsuchan-reef changed the base branch from master to v4.0 August 11, 2023 17:34
@jsuchan-reef jsuchan-reef marked this pull request as ready for review August 14, 2023 13:20
@jsuchan-reef jsuchan-reef changed the title B2-13: shell-like wildcards ls shell-like wildcards Aug 15, 2023
@mjurbanski-reef
Copy link

we have opted for a different behavior, and it has been since already implemented & merged to upstream

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

Successfully merging this pull request may close these issues.

2 participants