Patches item #1439312, was opened at 2006-02-26 17:21
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1439312&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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Grant Olson (logistix)
Assigned to: Nobody/Anonymous (nobody)
Summary: Patch for bug  1438185: os.renames deletes junction points

Initial Comment:
os.removedirs assumes that the os will throw an
exception if you try to rmdir an non-empty directory. 
Although this is a bit of a grey area, windows junction
points will be delete themselves even if the junction
point's destination has files.  os.renames() relied on
this behaviour and caused the failure.

This patch runs an explicit os.listdir() check when
calling os.removeddirs() to verify that a target
directory is really empty before deleting.

After this patch, manually running os.rmdir() against a
junction point will still just remove the junction
point like I would expect.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1439312&group_id=5470
_______________________________________________
Patches mailing list
[email protected]
http://mail.python.org/mailman/listinfo/patches

Reply via email to