Hello
In common lisp even in cmucl documentation aren't some elementary
functions related to filesystem - create and remove directory,
test for filetype (file or directory), ...
Is there some library to do that ?
Thanks,
Jan
Jan Gregor <··········@NOSPAMquick.cz> writes:
> Hello
>
> In common lisp even in cmucl documentation aren't some elementary
> functions related to filesystem - create and remove directory,
Creating a directory is handled by ENSURE-DIRECTORIES-EXIST.
> test for filetype (file or directory), ...
>
> Is there some library to do that ?
Edi Weitz recently announced a library to do these things:
http://weitz.de/cl-fad/
Zach
On Wed, 2 Feb 2005 21:07:00 +0100, Jan Gregor <··········@NOSPAMquick.cz> wrote:
> In common lisp even in cmucl documentation aren't some elementary
> functions related to filesystem - create and remove directory, test
> for filetype (file or directory), ...
···@vmware:/tmp$ cmucl
; Loading #p"/home/edi/.cmucl-init".
* (apropos "mkdir")
UNIX:UNIX-MKDIR [function] (name mode)
* (documentation #'unix:unix-mkdir t)
"Unix-mkdir creates a new directory with the specified name and mode.
(Same as those for unix-fchmod.) It returns T upon success, otherwise
NIL and an error number."
* (apropos "rmdir")
UNIX:UNIX-RMDIR [function] (name)
* (documentation #'unix:unix-rmdir t)
"Unix-rmdir attempts to remove the directory name. NIL and
an error number is returned if an error occured."
You might also want to look at
<http://common-lisp.net/project/cmucl/doc/cmu-user/unix.html#toc233>
and
<http://www.gigamonkeys.com/book/practical-a-portable-pathname-library.html>.
> Is there some library to do that ?
CL-FAD is an implementation of what Peter describes in his book.
CLOCC might also have some of the things you're looking for.
Cheers,
Edi.
--
Lisp is not dead, it just smells funny.
Real email: (replace (subseq ·········@agharta.de" 5) "edi")
Jan Gregor <··········@NOSPAMquick.cz> writes:
> In common lisp even in cmucl documentation aren't some elementary
> functions related to filesystem - create and remove directory,
> test for filetype (file or directory), ...
>
> Is there some library to do that ?
>
>
> Thanks,
> Jan
See:
CL-FAD - A portable pathname library for Common Lisp
http://www.weitz.de/cl-fad/
Paolo
--
Lisp Propulsion Laboratory log - http://www.paoloamoroso.it/log
Recommended Common Lisp libraries/tools (see also http://clrfi.alu.org):
- ASDF/ASDF-INSTALL: system building/installation
- CL-PPCRE: regular expressions
- UFFI: Foreign Function Interface
>Jan Gregor wrote:
> Hello
>
> In common lisp even in cmucl documentation aren't some elementary
> functions related to filesystem - create and remove directory,
> test for filetype (file or directory), ...
>
> Is there some library to do that ?
>
>
> Thanks,
> Jan
Osicat mmight help:
http://common-lisp.net/project/osicat/
-klaus.