-
Notifications
You must be signed in to change notification settings - Fork 684
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
[BUG] Fail to walk through a FlyteDirectory through os.listdir #6148
Comments
People can use s3fs to list the files if they want: s3fs GitHub. I’m not sure if we need to support it, as it’s unclear whether we should return S3 paths or local paths when listing a Flyte directory |
That makes sense to me. Thanks for your quick reply! |
@JiangJiaWei1103 , you should be able to run |
Hi @eapolinario, Yes, Thanks so much for your reply and please feel free to close it! |
It is a good question, but other libraries have specialized listdir to handle the case of remote files, e.g. fsspec. |
Describe the bug
Currently,
FlyteDirectory
doesn't supportos.listdir
with a remote S3 path (fortunately, a local path works!). The error is shown as follows:Though
FlyteDirectory
provideslistdir
method itself, I just thinkos.listdir
could provide a better UX.Expected behavior
A
FlyteDirectory
with a remote S3 path can be walked through byos.listdir
, as commented hereAdditional context to reproduce
Create a
demo
dir on minio and add a text file first. Then, run the following script:Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: