Bug 237882 - Provide API for detection and handling of symlinks
Provide API for detection and handling of symlinks
Status: NEW
Product: platform
Classification: Unclassified
Component: Filesystems
All All
: P2 (vote)
: Dev
Assigned To: Jaroslav Havlin
Depends on:
Blocks: 225558 225991 238869
  Show dependency treegraph
Reported: 2013-11-01 10:04 UTC by Jaroslav Havlin
Modified: 2013-11-27 12:07 UTC (History)
4 users (show)

See Also:

Proposed Patch (25.28 KB, patch)
2013-11-01 10:07 UTC, Jaroslav Havlin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Havlin 2013-11-01 10:04:21 UTC
Many native filesystems have support for symbolic links.
It might be useful if NetBeans Filesystems API provided some methods for handling them.

The proposed patch introduces these new methods in org.openide.filesystems.FileObject:

Comment 1 Jaroslav Havlin 2013-11-01 10:07:33 UTC
Created attachment 141766 [details]
Proposed Patch
Comment 2 Jaroslav Havlin 2013-11-06 14:40:00 UTC
Please review new Filesystems API for symbolic links.

If there is anyone who would like to use the new methods, please let me know.

If you are interested in symlinks in NetBeans, please review also
bug 225558 (native notifiers and symlinks) and bug 225991 (copy and symlinks).

I would like to know your opinion on whether the IDE should fully support
symlinks (special handling when copying, moving, deleting), only prevent failures
caused by recursive symlinks, or do not have any special support for symlinks at all.

Thank you.
Comment 3 Jaroslav Tulach 2013-11-10 07:43:54 UTC
Y01 There is also LocalFileSystem which can have symlinks as well. There would need to be new  methods like boolean isSymbolicLink(String path) in a new AbstractFileSystem.Nio2Info interface... not the highest priority, I guess.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo