Deleting a directory

10 views
Skip to first unread message

Zach Beane

unread,
Oct 3, 2010, 11:59:51 AM10/3/10
to quic...@googlegroups.com
I'm looking for a way to delete empty directories on each implementation
of Common Lisp that Quicklisp supports.

I know it's SB-POSIX:RMDIR in SBCL. But I'd also like to know for ABCL,
Allegro CL, Clozure CL, CLISP, CMUCL, ECL, LispWorks, and Scieneer. If you
know, would you please share?

Thanks,
Zach

Luís Oliveira

unread,
Oct 3, 2010, 12:16:03 PM10/3/10
to quic...@googlegroups.com
On Sun, Oct 3, 2010 at 4:59 PM, Zach Beane <xa...@xach.com> wrote:
> I know it's SB-POSIX:RMDIR in SBCL. But I'd also like to know for ABCL,
> Allegro CL, Clozure CL, CLISP, CMUCL, ECL, LispWorks, and Scieneer. If you
> know, would you please share?

How about borrowing CL-FAD:DELETE-DIRECTORY-AND-FILES?

--
Luís Oliveira
http://r42.eu/~luis/

Zach Beane

unread,
Oct 3, 2010, 12:26:03 PM10/3/10
to quic...@googlegroups.com
Luís Oliveira <lui...@gmail.com> writes:

> On Sun, Oct 3, 2010 at 4:59 PM, Zach Beane <xa...@xach.com> wrote:
>> I know it's SB-POSIX:RMDIR in SBCL. But I'd also like to know for ABCL,
>> Allegro CL, Clozure CL, CLISP, CMUCL, ECL, LispWorks, and Scieneer. If you
>> know, would you please share?
>
> How about borrowing CL-FAD:DELETE-DIRECTORY-AND-FILES?

Ah, thanks. I didn't know about that, I'll check it out.

Zach

Zach Beane

unread,
Oct 7, 2010, 5:43:00 AM10/7/10
to Quicklisp
cl-fad uses #+openmcl (ccl:delete-directory ...), but my ClozureCL
doesn't have a symbol by that name. Anyone know what I should use for
ClozureCL?

Thanks,
Zach

On Oct 3, 12:26 pm, Zach Beane <x...@xach.com> wrote:
> Luís Oliveira <luis...@gmail.com> writes:

Anton Kovalenko

unread,
Oct 7, 2010, 5:49:24 AM10/7/10
to quic...@googlegroups.com
Zach Beane <zbe...@gmail.com> writes:

> cl-fad uses #+openmcl (ccl:delete-directory ...), but my ClozureCL
> doesn't have a symbol by that name. Anyone know what I should use for
> ClozureCL?

Looked up the following ones (CCL svn head):

ccl::recursive-delete-directory
ccl::%rmdir

They are both internal, and I don't know whether any of them is
`official'. It seems, though, that there is no other way to delete a
directory except one of those functions.

--
Regards, Anton Kovalenko
+7(916)345-34-02 | Elektrostal' MO, Russia

Anton Kovalenko

unread,
Oct 7, 2010, 5:49:24 AM10/7/10
to quic...@googlegroups.com
Zach Beane <zbe...@gmail.com> writes:

> cl-fad uses #+openmcl (ccl:delete-directory ...), but my ClozureCL
> doesn't have a symbol by that name. Anyone know what I should use for
> ClozureCL?

Looked up the following ones (CCL svn head):

Reply all
Reply to author
Forward
0 new messages