`HDFS(Directory(cls)).__iter__` broken

Open Beginner friendly
#397 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start in odo/directory.py at line 34, where Directory iteration obtains the directory contents, and reproduce the failure with an HDFS(Directory(*)) object. Compare the directory-listing behavior available for HDFS with the current iteration path. Done means iterating over the HDFS-backed directory works and covers all entries without relying on an incompatible local-filesystem operation.

Written by the indexing model from the issue text.

Description

bug HDFS

Trying to iterate over an HDFS(Directory(*)) object is broken because of this line, which uses os.listdir to find all the files in the directory.

Dominant language
Python
Stars
1k
Forks
131
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from blaze/odo

All issues in blaze/odo

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.