> #define rename(origname, newname) systemf("move /y %s %s", (origname),
> (newname))

Wouldn't it be like 8,000 times faster to test if the file exists, then
unlink it, rather than calling an external program?

> WRONG, i say again WRONG not good at all...
> *nix based operating systems have a different definition for rename than
> windows ones do... in *nix it will work everytime/ all the time.

WRONG, I say, WRONG!
There is a whole bunch of reasons rename can fail on *nix systems.
Incompatible directory permissions come to mind, or if the 2 paths are on
different file systems it can't very well just rename...
Or even if the directory you are renaming to is locked (read lock).

OK maybe I'm being petty, but you can't go yelling at people and then be
wrong ;)

--Mike Barton.



Reply via email to