From dmiles@teknowledge.com Thu May 10 10:39:24 2001
Received: from helium.teknowledge.com (promethium.teknowledge.com [128.136.192.50])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f4A8dN328786
	for <prolog@swi.psy.uva.nl>; Thu, 10 May 2001 10:39:23 +0200 (MET DST)
Received: by helium.teknowledge.com with Internet Mail Service (5.5.2650.21)
	id <JWQS38KZ>; Thu, 10 May 2001 01:33:50 -0700
Message-ID: <EE25484266A64A47AE06CFC47C64232B40396F@helium.teknowledge.com>
From: "Douglas R. Miles" <dmiles@teknowledge.com>
To: prolog@swi.psy.uva.nl
Date: Thu, 10 May 2001 01:32:49 -0700
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Subject: [SWIPL] Getting a directory Listing on Windows


What would be the best way in SWI of getting a directory listing on NT?

Such as to write a predicate "collect_file_list(+Direcory,-FileList)."

Something of this nature

|?- collect_file_list('C:/',FileList).

 FileList=[file('NTLDR'),dir('WINNT')|...]





Thank you,

Douglas

