Skip to content

Conversation

@gregmagolan
Copy link
Collaborator

@gregmagolan gregmagolan commented Nov 16, 2018

No description provided.

stat = fs.statSync(fullPath);
} catch (e) {
if (fs.lstatSync(fullPath).isSymbolicLink()) {
// filter out broken symbolic links... these cause fs.statSync(fullPath)
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens if the symlink is valid? I assume it won't even cause an error then right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes. Then everything is fine. On Windows you get broken symlinks for .bin which is why it was filtered out and on OSX/Linux there are cases when symlinks are broken under test such as ecstatic/test/public/containsSymlink/more-problematic.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good.

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.

3 participants