[ python-Bugs-1438185 ] os.renames() crashes NTFS junctions
SourceForge.net
noreply at sourceforge.net
Fri Feb 24 17:03:04 CET 2006
Bugs item #1438185, was opened at 2006-02-24 17:03
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1438185&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Windows
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Daniel Rohlfing (damiro)
Assigned to: Nobody/Anonymous (nobody)
Summary: os.renames() crashes NTFS junctions
Initial Comment:
Hello
There is a problem using os.renames() with a path,
that was created as a ntfs junction.
You will find more information about junctions and a
tool to create them on:
http://www.sysinternals.com/Utilities/Junction.html
The source is also available there.
Try this to reproduce the problem:
*in DOS*
mkdir C:\dir1
echo >>C:\dir1\old.txt
junction.exe C:\dir2 C:\dir1
*in Python*
>>> import os
>>> os.renames("C:\\dir2\\old.txt", "C:\\dir2
\\new.txt")
If you now look in 'dir1' you will find new.txt
thats fine, but junction 'dir2' not longer exist.
os.rename() is not affected by this problem.
My OP is Windows 2000 [Version 5.00.2195] with SP4 and
im using Python 2.4.2
I hope you will find this information usefull.
greets from germany
Daniel Rohlfing
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1438185&group_id=5470
More information about the Python-bugs-list
mailing list