Hi! Simple question: How do I access one particula...
# flyte-support
s
Hi! Simple question: How do I access one particular existing file from a FlyteDirectory? I can do
FlyteDirectory.listdir
and the pick out the particular child that I want, but that is a bit cumbersome. Alternatively, I could do
dir.new_file()
, which should work, but that usage seems contradicting the method name. Shouldn't such a function exist? Thanks!
f
It can be a posix path
I guts you don’t want to download all, what suggestion do you have for the API
s
Indeed, it'd be nice not to have to DL the entire dir (otherwise going to
Path
solves it). Maybe a
join
method, like os.path.join?
f
hmm i think that exists
there is also a
crawl
method
that allows you to crawl all the members
I like the idea of join - cc @high-accountant-32689 where are you with the flytedir updates?
s
Thanks!