Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shutil.move bahave unexpected in fat32 #47503

Closed
grissiom mannequin opened this issue Jul 1, 2008 · 2 comments
Closed

shutil.move bahave unexpected in fat32 #47503

grissiom mannequin opened this issue Jul 1, 2008 · 2 comments
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@grissiom
Copy link
Mannequin

grissiom mannequin commented Jul 1, 2008

BPO 3253
Nosy @pitrou

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2008-08-09.17:05:28.717>
created_at = <Date 2008-07-01.17:35:08.512>
labels = ['type-bug', 'library']
title = 'shutil.move bahave unexpected in fat32'
updated_at = <Date 2008-08-09.17:05:28.715>
user = 'https://bugs.python.org/grissiom'

bugs.python.org fields:

activity = <Date 2008-08-09.17:05:28.715>
actor = 'pitrou'
assignee = 'none'
closed = True
closed_date = <Date 2008-08-09.17:05:28.717>
closer = 'pitrou'
components = ['Library (Lib)']
creation = <Date 2008-07-01.17:35:08.512>
creator = 'grissiom'
dependencies = []
files = []
hgrepos = []
issue_num = 3253
keywords = []
message_count = 2.0
messages = ['69053', '70938']
nosy_count = 2.0
nosy_names = ['pitrou', 'grissiom']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue3253'
versions = ['Python 2.5']

@grissiom
Copy link
Mannequin Author

grissiom mannequin commented Jul 1, 2008

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 "testmove.py", line 5, in <module>
    shutil.move('test_move', 'test_python')
  File "/usr/lib/python2.5/shutil.py", line 199, in move
    copy2(src,dst)
  File "/usr/lib/python2.5/shutil.py", line 92, in copy2
    copystat(src, dst)
  File "/usr/lib/python2.5/shutil.py", 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.

@grissiom grissiom mannequin added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Jul 1, 2008
@pitrou
Copy link
Member

pitrou commented Aug 9, 2008

This is already fixed in the trunk (which will become Python 2.6).

@pitrou pitrou closed this as completed Aug 9, 2008
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant