[RFC] TreeTransform fooled by os.rename on case insensitive filesystems
John Arbash Meinel
john at arbash-meinel.com
Wed Sep 3 19:24:44 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
...
>
>> You mean forcing TT to create a directory for every file ?
>
> Well, what I really mean is changing the test so that it tries to rename
> a directory on top of another directory. I believe this causes failures
> on every platform.
>
> Aaron
You have to have content inside the directory. Doing:
python
>>> import os
>>> os.mkdir('foo')
>>> os.mkdir('bar')
>>> os.rename('foo', 'bar')
Will succeed on Linux.
>>> os.mkdir('foo')
>>> open('foo/baz', 'wb').close()
>>> os.mkdir('bar')
>>> open('bar/bing', 'wb').close()
>>> os.rename('foo', 'bar')
Will fail.
We ran into this when we were exploring filesystem locking.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIvtZsJdeBCYSNAAMRAsCjAKCbtXd0I+wrLCzgyNlNR1RRGHN6RgCcDYt0
vxYpjvMykCBM19NXpruyAq8=
=DSRk
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list