From: Patrick S. <sbc...@nk...> - 2009-03-02 22:18:02
|
First off, apologies if this has been answered before. I cannot see a way to search the sbcl-help archives today. :( I am having trouble finding valid symlinks with #'DIRECTORY. Maybe some of this is still confusion on my part about the difference between pathnames, pathname designators, and pathspecs. Anyhow, here's what I have: ----------------------------------------------------------------- % touch a # make a file called a % ln a b # make b refer to same file as a % ln -s a c # make c a symbolic referal to a % ln -s e d # make e a symbolic link to non-existent file % ls -li 2608982 -rw-r--r-- 2 pat staff 0 Mar 2 15:56 a 2608982 -rw-r--r-- 2 pat staff 0 Mar 2 15:56 b 2608985 lrwxr-xr-x 1 pat staff 1 Mar 2 15:56 c -> a 2608986 lrwxr-xr-x 1 pat staff 1 Mar 2 15:56 d -> e % sbcl * (directory #P"./*.*") (#P"/Users/pat/tmp/foo/a" #P"/Users/pat/tmp/foo/b" #P"/Users/pat/tmp/foo/d") ----------------------------------------------------------------- So, DIRECTORY returns me the names of symlinks that don't really point to files, but skips those that do. Is this intended behavior? Do I have to switch to (sb-posix:opendir) if I want to see "c" also? Thanks, Patrick |