-
In the old Flytekit, giving the s3 directory name.download() created a local path and downloaded contents from s3.
I could reference the directory and all its local contents. What is its equivalent in the new Flytekit API where I want Flyte to locally download an s3(remote) Flytedirectory? |
Beta Was this translation helpful? Give feedback.
Answered by
SandraGH5
Aug 6, 2021
Replies: 1 comment
-
Use References: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SandraGH5
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use
FlyteFile
orFlyteDirectory
(native types) to reference a remote File or directoryos.fspath(flytedir) will download and return the local path.
os.listdir() works too, and os.path.join
References:
@jeevb
@katrogan
@kumare3