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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable 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-17 05:00:16 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!netnews.com!fr.clara.net!heighliner.fr.clara.net!freenix!enst!enst.fr!not-for-mail From: "M. A. Alves" Newsgroups: comp.lang.ada Subject: Re: Directory listings and path names Date: Thu, 17 Jan 2002 13:00:13 +0000 (GMT) Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: avanie.enst.fr 1011272403 46079 137.194.161.2 (17 Jan 2002 13:00:03 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Thu, 17 Jan 2002 13:00:03 +0000 (UTC) To: Return-Path: X-X-Sender: In-Reply-To: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:19010 Date: 2002-01-17T13:00:13+00:00 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), neither of the American Dental Association. You can call the OS services from an Ada program, thru a _binding_. 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 :-) -- , M A R I O data miner, LIACC, room 221 tel 351+226078830, ext 121 A M A D O Rua Campo Alegre, 823 fax 351+226003654 A L V E S P-4150-180 PORTO, Portugal mob 351+939354002