Path: csiph.com!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Robert Klemme Newsgroups: comp.lang.java.programmer Subject: Re: Local vs. network file Date: Sun, 24 Jun 2012 20:14:44 +0200 Lines: 20 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net SEYhTbJI9RZ3bdkl6u2f4A1XVqx9MJfi9c5B5um6tLxIIgYQWG1E7Bbd/Igi3RY4A= Cancel-Lock: sha1:/9ftC5U9WQGKuEXQOGWWUG8MFeQ= User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: Xref: csiph.com comp.lang.java.programmer:15564 On 24.06.2012 19:49, Peter Duniho wrote: > Actually, I doubt you can do this in a platform-independent way. Even on > Windows, a UNC path (which is normally used to specify a network path) can > refer to a local drive and a drive-letter path can refer to a network > location. You need to use platform-specific calls to tell the difference. How would an UNC path look that points to a local file / directory? Or did you think of \\local_server_name\any\path ? AFAIK that would still be a network path even though the share would be local. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/