[Errno 18] Invalid cross-device link using os.rename
JustScott
justscott at gmail.com
Wed Feb 16 12:53:05 EST 2005
Thanks, Jeff. I appreciate the input. I just stuck with os.system('mv
%s %s'). Seems to work fine.
On Mon, 14 Feb 2005 18:31:18 -0600, Jeff Epler <jepler at unpythonic.net> wrote:
> mv is a surprisingly complex program, while os.rename is a wrapper
> around rename(2) which is probably documented on your system to return
> EXDEV under these circumstanes.
>
> os.xxx is generally a fairly thin wrapper around what your OS provides,
> and inherits all the "gotchas". For some activities, os.shutil provides
> something that is between os.xxx and os.system("xxx") in complexity and
> capability.
>
> Jeff
>
>
>
More information about the Python-list
mailing list