fsspec / fsspec/s3fs

s3fs Python API find function with pattern ?

Open
#524 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1k
Forks
305
Avg merge
22h 37m
Merged PRs (30d)
4

Description

Hello,
is it possible with Python s3fs and find to list only directories that match a certain pattern ? I have tried the following, but for no result
bucket="logger" test=r"^[0-9a-fA-F]{8}" print(fs.find(f"{bucket}/{test}"))

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Python s3fs find API and reproduce the supplied bucket and pattern example. Determine whether find supports matching directories with this pattern; done means the reported behavior is supported or clearly documented, with the example covered if a change is needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cloud
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.