Subject: [SWIPL] Getting a directory Listing on Windows

From: "Douglas R. Miles" <[email-masked]>
Date: Thu, 10 May 2001 01:32:49 -0700

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