This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients draghuram, facundobatista, gvanrossum, init
Date 2007-12-11.17:24:03
SpamBayes Score 0.011714454
Marked as misclassified No
Message-id <ca471dc20712110924i4279ede2p44802b17b001a403@mail.gmail.com>
In-reply-to <1197384825.11.0.248271009244.issue1577@psf.upfronthosting.co.za>
Content
> Since we already have os.rename, wouldn't it be better for shutil.move()
> to be closer to command line 'mv'? I think Facundo's approach should work.

I'd rather not do this. It might cause disasters for code that expects
the old semantics. If you want a way to do the "mv" semantics, propose
a new API.

shutil.move() still offers several things over os.rename(): deleting
the target even if os.rename() doesn't (it doesn't on Windows);
cross-filesystem moves implemented as copy.
History
Date User Action Args
2007-12-11 17:24:04gvanrossumsetspambayes_score: 0.0117145 -> 0.011714454
recipients: + gvanrossum, facundobatista, draghuram, init
2007-12-11 17:24:04gvanrossumlinkissue1577 messages
2007-12-11 17:24:03gvanrossumcreate