s3fs
s3fs copied to clipboard
s3fs Python API find function with pattern ?
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}"))
Sorry for the late reply. You can either use find() and apply your own filtering, or your can use fs.glob(), which uses glob-style "*" characters, and is not as featured as general regex.