homepage

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 nooB
Recipients brian.curtin, heikki, nadeem.vawda, nooB, orsenthil, ronaldoussoren, tarek, tim.golden
Date 2011年01月26日.09:18:18
SpamBayes Score 1.7251594e-06
Marked as misclassified No
Message-id <1296033502.25.0.486518718824.issue10684@psf.upfronthosting.co.za>
In-reply-to
Content
Few points that could be useful,
1) I added print statements in `shutil.move` and found that the `real_dst` was wrong for the case coz os.path.isdir returns true.
>> import os
>> os.mkdir('test')
>> os.path.isdir('TEst')
True
In shutil.move, when we do shutil.move('test', 'TEst'), os.rename is actually applied to 'test' and 'TEst\test'. Thats why os.rename failed for the case in shutil.move.
2) os.rename has its own problems.
>> import os
>> os.mkdir('test')
>> os.rename('TEst', 'teST')
os.rename succeeded when the source 'TEst' did not exist.
Is this behaviour correct?.
This applies to shutil.move also.
>> import os,shutil
>> os.mkdir('test')
>> shutil.move('TEst', 'teST')
The folder 'test' gets deleted when trying to move 'TEst' to 'teST'. The case check should be done to the source argument also.
History
Date User Action Args
2011年01月26日 09:18:22nooBsetrecipients: + nooB, ronaldoussoren, orsenthil, tim.golden, nadeem.vawda, heikki, tarek, brian.curtin
2011年01月26日 09:18:22nooBsetmessageid: <1296033502.25.0.486518718824.issue10684@psf.upfronthosting.co.za>
2011年01月26日 09:18:19nooBlinkissue10684 messages
2011年01月26日 09:18:19nooBcreate

AltStyle によって変換されたページ (->オリジナル) /