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.

Title: shutil.move bahave unexpected in fat32
Type: behavior Stage:
Components: Library (Lib) Versions: Python 2.5
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: grissiom, pitrou
Priority: normal Keywords:

Created on 2008-07-01 17:35 by grissiom, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg69053 - (view) Author: grissiom (grissiom) Date: 2008-07-01 17:35
Build the environment in a fat32 file system:
$echo test > test_move
$mkdir testmove

If I shutil.move('test_move', 'testmove'), it will raise: 
Traceback (most recent call last):
  File "", line 5, in <module>
    shutil.move('test_move', 'test_python')
  File "/usr/lib/python2.5/", line 199, in move
  File "/usr/lib/python2.5/", line 92, in copy2
    copystat(src, dst)
  File "/usr/lib/python2.5/", line 69, in copystat
    os.chmod(dst, mode)
OSError: [Errno 1] Operation not permitted: 'test_python/test_move'

If I shutil.move('test_move', 'testmove/testmove'), it will succeed
quietly. This problem doesn't happen in an ext3 file system.
msg70938 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2008-08-09 17:05
This is already fixed in the trunk (which will become Python 2.6).
Date User Action Args
2022-04-11 14:56:36adminsetgithub: 47503
2008-08-09 17:05:28pitrousetstatus: open -> closed
resolution: fixed
messages: + msg70938
nosy: + pitrou
2008-07-01 17:35:08grissiomcreate