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.
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.