Develop a glob() method within the bucketbase module, replicating core functionality found in Python 3's glob library: https://docs.python.org/3/library/glob.html
The method should facilitate pattern-matching for file retrieval within a bucket-based storage system.
Functional Requirements:
- Parameter Support: The method must accept and process the following parameters:
pathname: The pattern string used for file matching.
root_dir: The base directory within the bucket from which the search should originate.
recursive: A boolean flag enabling recursive traversal of subdirectories.
- Recursive Globs: Implement support for recursive pattern matching using the
** wildcard.
- Scope Management: Prioritize core functionality. Complex or edge-case features may be omitted following discussion and agreement.
Acceptance Criteria:
- The implemented glob() method must accurately replicate the specified functionality of Python 3's glob, limited to the defined parameters and recursive support.
- Recursive searches using
** must function as expected.
- Any deviations from the core functionality due to complexity must be documented and agreed upon.
Develop a
glob()method within the bucketbase module, replicating core functionality found in Python 3's glob library: https://docs.python.org/3/library/glob.htmlThe method should facilitate pattern-matching for file retrieval within a bucket-based storage system.
Functional Requirements:
pathname: The pattern string used for file matching.root_dir: The base directory within the bucket from which the search should originate.recursive: A boolean flag enabling recursive traversal of subdirectories.**wildcard.Acceptance Criteria:
**must function as expected.