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 40410 - add FileUtil.normalizeFile( method
Summary: add FileUtil.normalizeFile( method
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: rmatous
Keywords: API
Depends on:
Blocks: 40430
  Show dependency tree
Reported: 2004-02-24 10:23 UTC by David Konecny
Modified: 2008-12-22 18:06 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description David Konecny 2004-02-24 10:23:37 UTC
The implementation will do:

- on Windows, call getCanonicalFile to avoid lots
of evil problems with e.g. filename case and 8.3

- on Unix or Unix-like systems, use new
File(f.toURI().normalize()) which takes care of
"." and ".." path components and absolutizes the
path but does not traverse symlinks.

This method will have to be used consistently in
all code base in order to prevent issues like 25953.
Comment 1 David Konecny 2004-03-02 10:55:08 UTC
Radek volunteer to do this.
Comment 2 Jesse Glick 2004-05-07 22:41:02 UTC
Doesn't we already have this method?? Why is this still open? And why
is Version set to 3.5?
Comment 3 David Konecny 2004-05-09 11:30:45 UTC
Fixed long time ago.