🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2193

Re: File question

#2193
From: Rich Wilkman
Date: Tue, 15 May 2001 15:58
23 lines
1536 bytes
Owen:

Actually, as far as the OS is concerned a directory is a file. 
Languages just followed that.

-Rich (feeling pedantic without my coffee)

Owen Green wrote:
> 
> > Why is it that when I , for example:
> >
> >    File Selectedfile = Filechooser.getSelectedFile();
> >    String fDir  = Selectedfile.getPath();
> >
> > fDir, includes the file name as well. All I want it the path.
> 
> Because as far as the File class is concerned, a directory and a file are
> equivalent. To get the directory where you've got a file do
>   String fDir  =SelectedFile.getParent().getAbsaloutePath()
> or somesuch...
> 
> hth
> Owen
Technical Details
Message-ID: <3B015210.488BABF9@formlessvoid.com>
Path: arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3af7a44b$1_1@dnews> <3b013f0f_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,234664013f4e920b
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-05-15 09:11:05 PST
Message-ID: <3B015210.488BABF9@formlessvoid.com>
Date: Tue, 15 May 2001 08:58:08 -0700
From: Rich Wilkman <richw@formlessvoid.com>
X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: File question
References: <3af7a44b$1_1@dnews> <3b013f0f_1@dnews>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 208.236.69.60
X-Trace: dnews 989942286 208.236.69.60 (15 May 2001 08:58:06 -0700)
Lines: 23
Path: arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews