This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 22865 - Lacking FileObject.find(String path)
Summary: Lacking FileObject.find(String path)
Status: RESOLVED DUPLICATE of bug 34730
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-26 14:14 UTC by Svata Dedic
Modified: 2008-12-22 21:14 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Svata Dedic 2002-04-26 14:14:22 UTC
I often need to find a FileObject, starting from
the given one. Given the current APIs, I have to
descend into the fileobject tree manually, parsing
the path myself. I think a convenience method
would be very helpful.
I also think that there should be something like
getChild(String nameExt); current APIs require me
to parse the whole filename for extension and hand
them separately to the FileSystem API. Again, that
is incovenient.
If accepted as valid, I volunteer to create &
attach implementation patch :-)
Comment 1 Marek Grummich 2002-07-22 11:19:39 UTC
Set target milestone to TBD
Comment 2 Marek Grummich 2002-07-22 11:22:11 UTC
Set target milestone to TBD
Comment 3 rmatous 2002-08-02 11:56:43 UTC
I would accept it, but I wouldn`t add any new method. Perhaps method
getFileObject (you call it getChild) could be enough. If you pass name
that caontains '/', then it finds deeper in hierarchy. Also
getFileObject (String name) exists. I`ll check it and fix it to be
able pass name including extension.
Comment 4 Jesse Glick 2004-02-04 04:49:03 UTC

*** This issue has been marked as a duplicate of 34730 ***