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 19:04:22 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Directory listings and path names Date: 18 Jan 2002 21:03:31 -0600 Organization: LJK Software Message-ID: References: NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1011409443 29828 192.135.80.34 (19 Jan 2002 03:04:03 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Sat, 19 Jan 2002 03:04:03 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:19092 Date: 2002-01-18T21:03:31-06:00 List-Id: In article , Brian Rogoff writes: > 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. But a subset of multitasking capabilities has been chosen as being adequate for Ada programs. Declaring a similar subset for files is more difficult because files are used for communication with other components of the computing environment. Do I want only files that are present on the system or should shelved files in that directory be included ? How do I access only the third newest version (VMS terminology - someone else can translated it into partitioned data set terminology for IBM machines). Which of those file operations are viable on magnetic tape, and which are restricted to disk files.