Summary
The user is seeking a simpler way to access a specific existing file from a FlyteDirectory, finding FlyteDirectory.listdir
cumbersome. They express confusion over the functionality of dir.new_file()
and suggest that a more straightforward method is needed. Additionally, they propose a join
method, akin to os.path.join
, to enhance the process, and mention the existence of a crawl
method.
pim
Thanks!
kumare
I like the idea of join - cc <@U0265RTUJ5B> where are you with the flytedir updates?
kumare
that allows you to crawl all the members
kumare
there is also a crawl
method
kumare
hmm i think that exists
pim
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?
kumare
I guts you don’t want to download all, what suggestion do you have for the API
kumare
It can be a posix path
pim
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!