(DIRECTORY PATH) 
Author Message
 (DIRECTORY PATH)

I see a place where CLISP and CMU/CL behave significantly differently,
that being with the DIRECTORY function.

I rather like aspects of both...

In CLISP,

Quote:
> (directory (make-pathname :directory '(:absolute "home" "*")))

lists all the *directories* under /home whereas CMU-CL would list
nothing as I have no directory #P"/home/*"

Advantage: CLISP.

On the other hand,

Quote:
> (directory (make-pathname :directory '(:absolute "home" "cbbrowne")))

with CMU/CL will list both files _and directories_ under
/home/cbbrowne, whilst CLISP only lists the files, omitting directories.

A third interesting difference: with CLISP I can use:

Quote:
> (directory (make-pathname :directory '(:absolute "home" "cbbrowne" :all t)))

which lists pathnames, truenames, modification date, and size, whilst
CMU/CL seems to have no equivalent.

All of these things seem to be going past HyperSpec functionality; HS
does not indicate that directories should or should not be listed, nor
does it indicate a way of getting at modification date.  And CMU/CL
seems to omit having a way to get at the latter.

I can't expect a _standard_ way to get at date info; is there some
other reasonable way in CMU/CL to do that?
--

http://www.*-*-*.com/ ~cbbrowne/oses.html
"XFS might (or might not) come out before the year 3000. As far as
kernel patches go, SGI are brilliant. As far as graphics, especially
OpenGL, go, SGI is untouchable. As far as filing systems go, a
concussed doormouse in a tarpit would move faster."
-- jd on Slashdot



Sun, 03 Aug 2003 15:18:39 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Making file path control only select directory paths not file names

2. Passing the current directory path to a variable - awk on a PC

3. Invoking awk from different directories/PATH

4. ! - windows directory path (CW2.0)

5. Directory path for ::REQUIRES?

6. determining directory path

7. Converting ~fred to home directory path

8. Help Starting excel from tcl, with spaces in directory path

9. Determining directory path file sourced by Wish (Mac)

10. HELP! - tcl cgi - directory paths

11. Problem with glob and directory path names on Windows

12. Problem with glob and directory path names

 

 
Powered by phpBB® Forum Software