-
Notifications
You must be signed in to change notification settings - Fork 80
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
fs::file_info hangs for symlinks of symlinks #440
Labels
bug
an unexpected problem or unintended behavior
Comments
A pure R reproducer: library(fs)
file_touch("file")
link_create("file", "link1")
link_create("link1", "link2")
is_file("link2") It seems the loop that follows symlinks is broken: Lines 64 to 69 in 8a84fc9
|
This is not only on Mac, I am using Ubuntu 20.04. |
And the bug is actually in |
DE0CH
changed the title
fs::is_file hangs for homebrew python on Mac
fs::file_info hangs for symlinks of symlinks
Jan 8, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems like
fs::is_file('/opt/homebrew/bin/python3')
hangs on Mac with homebrew python installed. This doesn't seem to be a Mac specific bug because I was able to reproduce it by recreating the folder structure and symlinks on a linux computer I have.Steps to reproduce
Create symlinks and folder structure with the script below
And then run
fs::is_file('opt/homebrew/bin/python3')
to see it hangs.Version Information
I installed the version of fs from GitHub, which is at 8a84fc9 at the time of writing.
The text was updated successfully, but these errors were encountered: