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 X-Google-Thread: 103376,3689d3c938c589e5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-18 05:10:29 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!fu-berlin.de!uni-berlin.de!gate.dornier.dasa.DE!not-for-mail From: Joachim =?ISO-8859-1?Q?Schr=F6er?= Newsgroups: comp.lang.ada Subject: Re: Directory listings and path names Date: Fri, 18 Jan 2002 14:09:12 +0100 Message-ID: <3C481E78.4040101@dornier.eads.net> References: NNTP-Posting-Host: gate.dornier.dasa.de (53.122.46.165) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: fu-berlin.de 1011359369 32772318 53.122.46.165 (16 [76083]) User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.6) Gecko/20011120 X-Accept-Language: en-us Xref: archiver1.google.com comp.lang.ada:19042 Date: 2002-01-18T14:09:12+01:00 List-Id: 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? > > /Andreas > > > You may download http://www.adapower.com/schroer/lib-src.zip Look into package portable.operating_system, function all_entries and set the parameters as you like. The package is implemented on top of the Ada posix-binding for win32. In the body some win32 features are called directly. Simply comment them out if you need the function for another OS than win32. Best regards J. Schr�er