Re: directory_files question

Duncan Patton a Campbell <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>

Please ignore that last brain-fart...




On Mon, 28 May 2012 09:51:12 -0600
Duncan Patton a Campbell <[email protected]> wrote:

> 
> Howdy Daniel, all?
> 
> in the manual:
> 
> 8.27.7  directory_files/2 
> 
> Templates
> 
>     directory_files(+atom, ?list)
> 
> 
> but when I run it at the top level I get a returned value that
> looks like a list with a single atomic term:
> 
> | ?- findall(X,directory_files('./',X),XL),length(XL,Xlen).
> 
> XL = [['.',..,'.X11-unix','.ICE-unix','.X0-lock','RDS_radiohack.pdf','sylpheed-1000','dbus-WzhE0SGfRy','09_11STSuspension_769-812.pdf',dat2,dat1,dat3,'tst.pl',sess_0cttvdcvgums3295asvm9d1h37,sess_d44nfu2622dvqmoasp8oc9l586,sess_dj3m8838or24rbr0mkq92p3l95,'dtest.txt','dtest2.txt','dtest3.txt',sess_81i8jaqoo1k6erhn8h7il5r1s1,tmp,sess_ggh80g6ccid64ifq80gdglt6p4,'dtest4.txt','dtest5.txt','dtest6.txt','dtest7.txt',sess_qte620mm4rvrqv9clh4n22v1j5,'mozilla-media-cache','2223797.3ff7eaf9d46f992646ac90a7097b4a96.mp3']]
> Xlen = 1
> 
> This is the same for 1.40 on amd64 as for 1.3.1 on i386 so mebbe this is what is intended?
> 
> Thanks,
> 
> Dhu
> 
> 
> 
> 
> -- 
> Ne obliviscaris, vix ea nostro voco.


-- 
Ne obliviscaris, vix ea nostro voco.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.