Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2006

Tip: Looking for answers? Try searching our database.

Changes in getCanonical Path behaviour

Thread view: 
Roedy Green - 11 Feb 2006 03:58 GMT
In the olden days, on Windows,  File.getCanonicalPath would look the
file up in the directory and find out its precise case and return that
to you.  Now it returns the same thing as getAbsolutePath, echoing the
case of the filename as you gave it.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Chris Smith - 11 Feb 2006 04:07 GMT
> In the olden days, on Windows,  File.getCanonicalPath would look the
> file up in the directory and find out its precise case and return that
> to you.  Now it returns the same thing as getAbsolutePath, echoing the
> case of the filename as you gave it.

"Now"?  I don't see that behavior with Java 1.5.0-b64.  On what version
do you see this behavior?

Signature

www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation

Roedy Green - 11 Feb 2006 04:51 GMT
On Sat, 11 Feb 2006 03:58:04 GMT, Roedy Green
<my_email_is_posted_on_my_website@munged.invalid> wrote, quoted or
indirectly quoted someone who said :

>In the olden days, on Windows,  File.getCanonicalPath would look the
>file up in the directory and find out its precise case and return that
>to you.  Now it returns the same thing as getAbsolutePath, echoing the
>case of the filename as you gave it.

oops. My mistake.  I did not set up the test files correctly.  I was
getting results for a non-existent file, which of course has no define
canonical case.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.