Paul M Foster a écrit :

I would have thought so, but the man pages didn't mention it. I haven't
use mv in ages. Makes sense that it would work, though. Moving/renaming
a file would just change the name, not the inode number, which is the
real key to *nix file systems.

Ashley said it, a directory is a file. But more, when you do a mv on a file, it don't rename. If the target is in the same filesystem, mv do a hard link on the source file, then unlink the original name. If you move accross filesystem, mv do a copy of the directory.

  If you don't believe me, get the source.

Mickaël Wolff aka Lupus Michaelis

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to