Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

fix: fix file not found exception when enumerating a dir with non existing symlinks #1103

Merged
merged 1 commit into from
Jul 12, 2018

Conversation

DimitarTachev
Copy link
Contributor

@DimitarTachev DimitarTachev commented Jul 11, 2018

related to issue #3741

…sting symlinks (avoiding invalid shouldBuild results on iOS)
Copy link
Collaborator

@rosen-vladimirov rosen-vladimirov left a comment

Choose a reason for hiding this comment

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

Nice work. Just to note the solution - when you have a symlink to a file, but the original file does not exist, fs.existsSync API returns false for the symlink itself, even if the linked file is there. You can try this by calling:

$ touch a
$ ln -s a b 
$ node -p "fs.existsSync('b')"
true
$ rm a
$ node -p "fs.existsSync('b')"
false

@DimitarTachev DimitarTachev merged commit 2b71367 into master Jul 12, 2018
@DimitarTachev DimitarTachev deleted the tachev/fix-should-build branch July 12, 2018 08:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants