Skip to content
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

Fix bug in FlyteDirectory.listdir on local files #2926

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pimdh
Copy link

@pimdh pimdh commented Nov 13, 2024

Tracking issue

Closes flyteorg/flyte#6005

Why are the changes needed?

Fixes bug that makes FlyteDirectory.listdir return file/directory names instead of paths.

What changes were proposed in this pull request?

Instead of the file/directory name, return full path.

How was this patch tested?

Added unittest to tests/flytekit/unit/types/directory/test_listdir.py

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Copy link

welcome bot commented Nov 13, 2024

Thank you for opening this pull request! 🙌

These tips will help get your PR across the finish line:

  • Most of the repos have a PR template; if not, fill it out to the best of your knowledge.
  • Sign off your commits (Reference: DCO Guide).

pimdh and others added 2 commits November 13, 2024 15:44
Signed-off-by: Pim de Haan <[email protected]>
@eapolinario
Copy link
Collaborator

@pimdh , this is pretty cool. Can you fix the lint warning?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] FlyteDirectory.listdir does not return full paths for local files
2 participants