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

Windows readlink() Behavior Differences #20

Open
The-Randalorian opened this issue May 17, 2022 · 0 comments
Open

Windows readlink() Behavior Differences #20

The-Randalorian opened this issue May 17, 2022 · 0 comments

Comments

@The-Randalorian
Copy link

When reading an NTFS file system on windows, a program may encounter junction points, which are similar to symbolic links, but a bit different, see this GeeksforGeeks page https://www.geeksforgeeks.org/ntfs-junction-points/. The readlink functions from pathlib.Path and aiopath.AsyncPath act slightly differently when encountering junction points. When calling Path.readlink() on a junction point, the path the junction point points to is returned. AsyncPath.readlink() instead raises a TypeError.

For testing purposes, you can use the junction point C:\Users\[YOUR USERNAME]\AppData\Local\Application Data\ which points to C:\Users\[YOUR USERNAME]\AppData\Local\.

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