Skip to content

feat(fileio): add backend-agnostic glob APIs - #1700

Open
zhengguangzhuo wants to merge 2 commits into
open-mmlab:mainfrom
zhengguangzhuo:feat/fileio-glob-1634
Open

zhengguangzhuo wants to merge 2 commits into
open-mmlab:mainfrom
zhengguangzhuo:feat/fileio-glob-1634

Conversation

@zhengguangzhuo

Copy link
Copy Markdown

Summary

  • add backend-agnostic glob and iglob helpers to mmengine.fileio
  • reuse each backend's list_dir_or_file implementation and support *, ?, character classes, and recursive ** matching
  • export the new APIs and cover local and custom backend_args paths with regression tests

Tests

  • python -m pytest tests/test_fileio/test_io.py -q
  • python -m compileall -q mmengine/fileio

Fixes #1634

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

[Feature Request] Add glob/iglob API for pattern-based file listing across different storage backends

3 participants