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

Not following symlink #46

Open
swisstackle opened this issue Oct 16, 2022 · 1 comment
Open

Not following symlink #46

swisstackle opened this issue Oct 16, 2022 · 1 comment

Comments

@swisstackle
Copy link

My filestructure is the following:
https://github.com/swisstackle/pr/blob/master/filestructureuml.png

My call is the following:
const results = walkdir.sync(fileOrDir, { follow_symlinks: true });

where fileOrDir is the test directory.

However, for some reason it does not add "Random.sol" to the results list. Random.sol is linked through a symlink and the file lies outside of the test directory (but is linked from the test directory through "symlink3.").

What could the problem be? If more information is needed, let me know.

@swisstackle
Copy link
Author

I figured out that the asynchronous walkdir.walk finds the file outside the test directory, but walkdir.sync does not.

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

No branches or pull requests

1 participant