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

Add a way to check if Path points to a link #359

Closed
vdshb opened this issue Jul 29, 2024 · 2 comments
Closed

Add a way to check if Path points to a link #359

vdshb opened this issue Jul 29, 2024 · 2 comments

Comments

@vdshb
Copy link

vdshb commented Jul 29, 2024

I can see Path.isDirectory and Path.isRegularFile but I can't see a way to detect symbolic link.

This is a proposal to add Path.isSymbolicLink and Path.isHardLink properties which detect whether Path points into symbolic/hard link or not.

@vdshb
Copy link
Author

vdshb commented Jul 29, 2024

I'll put it here as a reference: https://docs.oracle.com/javase/tutorial/essential/io/links.html

I'm not an expert in this field, so maybe Path.isHardLink is harder/impossible to implement. In this case, this proposal is only about Path.isSymbolicLink.

@fzhinkin
Copy link
Collaborator

Similar issue: #330

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

2 participants