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

finish PR #5333 #5390

Merged
merged 2 commits into from Mar 20, 2014
Merged

finish PR #5333 #5390

merged 2 commits into from Mar 20, 2014

Conversation

minrk
Copy link
Member

@minrk minrk commented Mar 19, 2014

The missing bit was listdir being called on files, not just dirs

@@ -102,10 +102,21 @@ def is_hidden(abs_path, abs_root=''):
if any(part.startswith('.') for part in inside_root.split(os.sep)):
return True

# check that dirs can be listed
if os.path.isdir(abs_path):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a comment here about what situations this covers (IOW, when can a dir be non-listable.)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@ellisonbg
Copy link
Member

Just one minor comment, then ready for merging.

is_hidden is called with files, not just dirs
@ellisonbg
Copy link
Member

Great, merging.

ellisonbg added a commit that referenced this pull request Mar 20, 2014
@ellisonbg ellisonbg merged commit 7b9b9b2 into ipython:master Mar 20, 2014
@minrk minrk deleted the finish-5333 branch March 31, 2014 23:36
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
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.

None yet

3 participants