Bugs item #1524310, was opened at 2006-07-18 09:35 Message generated for change (Comment added) made by loewis You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1524310&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.5 >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Roger Upole (rupole) Assigned to: Nobody/Anonymous (nobody) Summary: os.listdir doesn't check error code from FindNextFile Initial Comment: The Windows implementation of listdir returns successfully as soon as FindNextFile returns False, without checking that GetLastError returns ERROR_NO_MORE_FILES. If the operation is interrupted (eg removable media ejected, network connection to UNC path lost, and so on) an incomplete directory listing is returned instead of throwing an exception. This behaviour exists in 2.4.3 and 2.5b2. ---------------------------------------------------------------------- >Comment By: Martin v. Löwis (loewis) Date: 2006-07-24 14:58 Message: Logged In: YES user_id=21627 Thanks for the report. Fixed with r50797 and r50798 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1524310&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com