Skip to content

Check if the URL is a directory before attempting to scan it #19

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

Closed
wants to merge 1 commit into from

Conversation

mdriessen
Copy link
Contributor

I got alot of scandir errors on files. So I changed the code a little to check if it's a directory before attempting to scan it.

Also, I just noticed your PHPDoc comment about is_dir() being unreliable. Is this still the case and if so, how can this be reproduced?

@mdriessen
Copy link
Contributor Author

You're right, the indentation was wrong. That line had tabs instead of spaces, so I changed the commit rather than adding one.

@h4cc
Copy link
Collaborator

h4cc commented Mar 4, 2014

Thanks for your contribution.
This seems like a duplicate of #20. Closing this one.

@h4cc h4cc closed this Mar 4, 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.

2 participants