From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3689d3c938c589e5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-18 14:58:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!sjc-peer.news.verio.net!news.verio.net!sea-read.news.verio.net.POSTED!not-for-mail Newsgroups: comp.lang.ada From: Brian Rogoff Subject: Re: Directory listings and path names In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Date: Fri, 18 Jan 2002 22:58:23 GMT NNTP-Posting-Host: 192.220.65.223 X-Complaints-To: abuse@verio.net X-Trace: sea-read.news.verio.net 1011394703 192.220.65.223 (Fri, 18 Jan 2002 22:58:23 GMT) NNTP-Posting-Date: Fri, 18 Jan 2002 22:58:23 GMT Organization: Verio Xref: archiver1.google.com comp.lang.ada:19082 Date: 2002-01-18T22:58:23+00:00 List-Id: On Thu, 17 Jan 2002, M. A. Alves wrote: > On Thu, 17 Jan 2002, Andreas Valdusson wrote: > > If I have the name of a directory, and want ADA to get the names of > > all sub-directories of this one, how do I do? How do I get the > > contents of a specific directory (ie. the names for all subdirectories > > and files) and how do I know which of these that are sub-directories > > an which are files? > > These are services of the Operating System, not of Ada (the programming > language), Says you! I could argue the same about tasking. IMO, it would be a good thing if there were some sort of standard directory package. I know, someone will argue that file systems are different. Oh yeah? So are the multitasking capabilities of various OSes. > I bet you can find a > couple of packages implementing such bindings freely available on the > Internet. If you are using GNAT, you already have it: GNAT.OS_Lib :-) True, but Ada should provide the support out of the box. This is one of the first things I need when I start with any programming language. -- Brian