[Openmcl-devel] delete-file and directories

rm at fabula.de rm at fabula.de
Sat Mar 12 14:49:56 PST 2005


On Sat, Mar 12, 2005 at 02:40:18PM -0800, bryan o'connor wrote:
> >"ENSURE-DIRECTORIES-DO-NOT-EXIST"
> 
> that is a great name.
> 
> sbcl has the sb-posix package that provides wrappers around
> most (all?) of the posix calls.  one of which is rmdir.
> 

Yup, but remember (from the manpage):

  rmdir deletes a directory, which must be empty.

Should OpenMCL provide a function that mimics 'rm -Rf'?
I really like ENSURE-DIRECTORIES-DO-NOT-EXIST for the rmdir
variant, may i suggest PRUNE-DIRECTORY-TREE for the recursive
variant? :-)



Cheers RalfD

> i think something equivalent could easily be written for
> openmcl.. perhaps even using the same sb-posix api.
> 
> it'd would help in porting some lisp apps like macho.
> 
> 	...bryan
> 
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel



More information about the Openmcl-devel mailing list