Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Info.plist, WorkingDirectory, and User's Home Dir



At 1:05 AM +0100 1/11/07, Geoff Levner wrote:
I was assuming that the "working directory" does not really matter. If your problem is, as you say, that you need to access files in a subdirectory of the user's home directory, then it does not matter what the "working directory" is: you can specify the location of that directory as an absolute path, and you can construct that path in your code by concatenating the relative path obtained from Info.plist to the value of the user.dir property.

I hope that is clearer.

Geoff

Maybe I've missed it in this thread...but has anyone pointed out that the system property "user.home" will *always* point to the current user's home directory?


= Steve =
--
Steve W. Jackson
Montgomery, Alabama
http://homepage.mac.com/stevejackson/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Info.plist, WorkingDirectory, and User's Home Dir (From: "Yahya Cahyadi" <email@hidden>)
 >Re: Info.plist, WorkingDirectory, and User's Home Dir (From: Michael Hall <email@hidden>)
 >Re: Info.plist, WorkingDirectory, and User's Home Dir (From: Geoff Levner <email@hidden>)
 >Re: Info.plist, WorkingDirectory, and User's Home Dir (From: Yahya Cahyadi <email@hidden>)
 >Re: Info.plist, WorkingDirectory, and User's Home Dir (From: Geoff Levner <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.