[Python-ideas] Implementation of shutil.move

David Townshend aquavitae69 at gmail.com
Sun Aug 14 17:23:30 CEST 2011


Sorry, yes. That is what I meant.
On Aug 14, 2011 5:12 PM, "Devin Jeanpierre" <jeanpierreda at gmail.com> wrote:
>> Why do you think that move on remote file systems use copy? From past
>> experience and recent tests I can confirm that shutil.move() uses rename
>> on remote CIFS and NFS file systems
>
> I believe what he meant to say was "if you move from one filesystem to
another".
>
> shutil.move tries to do a copy and delete if rename fails with an OSError.
>
> Devin
>
> On Sun, Aug 14, 2011 at 10:39 AM, Christian Heimes <lists at cheimes.de>
wrote:
>> Am 14.08.2011 16:09, schrieb David Townshend:
>>> It seems there's a second problem too - move on remote file systems use
copy
>>> rather than rename, so changing the implementation means changing it for
>>> copy too, which is more difficult. Maybe the best option is to try to
apply
>>> some sort of locking mechanism, but I can't see how right now.
>>
>> Why do you think that move on remote file systems use copy? From past
>> experience and recent tests I can confirm that shutil.move() uses rename
>> on remote CIFS and NFS file systems.
>>
>>
>> _______________________________________________
>> Python-ideas mailing list
>> Python-ideas at python.org
>> http://mail.python.org/mailman/listinfo/python-ideas
>>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20110814/ce38c833/attachment.html>


More information about the Python-ideas mailing list