Bugs item #1438185, was opened at 2006-02-24 10:03 Message generated for change (Comment added) made by logistix 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 ---------------------------------------------------------------------- Comment By: Grant Olson (logistix) Date: 2006-02-26 17:23 Message: Logged In: YES user_id=699438 Patch 1439312 posted. ---------------------------------------------------------------------- Comment By: Grant Olson (logistix) Date: 2006-02-25 17:02 Message: Logged In: YES user_id=699438 This is because 'os.rmdir' doesn't throw an exception when deleting a junction, since it doesn't really have any files under it. Does look like a bug to me though. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1438185&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com