Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Moving files/directories in Common Lisp

Name: Anonymous 2009-12-20 14:45

What is the best way to do it?

I know there is rename-file, but it doesn't work across partitions and moving from one directory to another isn't portable either it seems. It's also only for files.

Google didn't help me. The closest thing I found was http://common-lisp.net/project/osicat/ which adds some nice things related to files/directories, among others, but not what I'm looking for.

I could only come up with reading from a file, writing it somewhere else and deleting the original, but that would be a really shitty way to do it for obvious reasons and even worse for directory trees.

Name: Anonymous 2010-02-09 23:49

>>23
Most Lisps prefers to act like some incompatible Lisp Machine black box and not like a program running on your actual OS.
For the same reason running multiple Lisp programs gives you a huge overhead (no sharing memory, oh joy!) unless you load it into the same Lisp image which is downright insanity so no one does it. Just Imagine every program loading extra copies of all linked libraries into memory. That's what running multiple Lisp programs is like.

I wish I was joking.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List