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

Fixing issue with broken symlinks #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lonelyelk
Copy link

Problem:
When traversing a directory containig broken symbolic links, said links
throw error before we have a chance to ignore them, which we might want
to.

Solution:
When encountering error code ENOENT make lstat call which doesn't
fail on broken links due to not following them. It is up to the user
then to check if he needs to ignore this particular link via ignore
function or pattern.

Fixes #42

Problem:
When traversing a directory containig broken symbolic links, said links
throw error before we have a chance to ignore them, which we might want
to.

Solution:
When encountering error code `ENOENT` make `lstat` call which doesn't
fail on broken links due to not following them. It is up to the user
then to check if he needs to ignore this particular link via ignore
function or pattern.

Fixes jergason#42
Copy link

@jrtechs jrtechs left a comment

Choose a reason for hiding this comment

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

This worked with me thanks! Someone else also fixed this in #60. It would be great if we could get this merged.

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