[armedbear-ticket] [armedbear] #136: ABCL should allow DIRECTORY listings that don't follow symlinks, and/or provide a function for deleting a directory tree

armedbear armedbear-devel at common-lisp.net
Wed Mar 2 18:43:18 UTC 2011


#136: ABCL should allow DIRECTORY listings that don't follow symlinks, and/or
provide a function for deleting a directory tree
-----------------------------------------+----------------------------------
 Reporter:  vvoutilainen                 |       Owner:  nobody
     Type:  enhancement                  |      Status:  new   
 Priority:  critical                     |   Milestone:  0.26  
Component:  libraries                    |     Version:        
 Keywords:  quicklisp directory symlink  |  
-----------------------------------------+----------------------------------
 Zach Beane writes:

 >> If I have a directory containing a file named a.txt and a symlink b.txt
 >> that points to a.txt, is there any ABCL function I can call to get both
 >> directory entries as separate objects, i.e. the list (#p"a.txt"
 >> #p"b.txt")? The semantics of CL:DIRECTORY seem to require resolving the
 >> b.txt symlink, so I'm trying to figure out an extra-standard way to do
 >> it in ABCL, if possible.
 >
 > I suppose we could add a keyword argument to DIRECTORY that would
 > allow that, or add a separate function. I don't think we have such a
 facility
 > at the moment.

 Let me back up and get to my actual goal; perhaps there's a way to do it
 in ABCL already...

 I'd like to delete a directory tree from within ABCL. The directory
 generally consists of plain files and other directories, but in some
 cases there will be symlinks present. For other CL implementations, I
 used extra-standard directory deletion and enumeration functions, so I
 thought I could perhaps do the same in ABCL. But maybe I can go for a
 higher abstraction.

 Is there a function within ABCL that deletes an entire directory tree?

 Further, Zach writes:

 Without the ability to do one of those two things, I'm afraid I won't be
 able to offer a version of Quicklisp that works with ABCL in the future.

-- 
Ticket URL: <http://trac.common-lisp.net/armedbear/ticket/136>
armedbear <http://common-lisp.net/project/armedbear>
armedbear


More information about the armedbear-ticket mailing list