Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os.listdir doesn't check error code from FindNextFile #43684

Closed
rupole mannequin opened this issue Jul 18, 2006 · 2 comments
Closed

os.listdir doesn't check error code from FindNextFile #43684

rupole mannequin opened this issue Jul 18, 2006 · 2 comments

Comments

@rupole
Copy link
Mannequin

rupole mannequin commented Jul 18, 2006

BPO 1524310
Nosy @loewis

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2006-07-24.12:58:06.000>
created_at = <Date 2006-07-18.07:35:41.000>
labels = ['OS-windows']
title = "os.listdir doesn't check error code from FindNextFile"
updated_at = <Date 2006-07-24.12:58:06.000>
user = 'https://bugs.python.org/rupole'

bugs.python.org fields:

activity = <Date 2006-07-24.12:58:06.000>
actor = 'loewis'
assignee = 'none'
closed = True
closed_date = None
closer = None
components = ['Windows']
creation = <Date 2006-07-18.07:35:41.000>
creator = 'rupole'
dependencies = []
files = []
hgrepos = []
issue_num = 1524310
keywords = []
message_count = 2.0
messages = ['29196', '29197']
nosy_count = 2.0
nosy_names = ['loewis', 'rupole']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1524310'
versions = ['Python 2.5']

@rupole
Copy link
Mannequin Author

rupole mannequin commented Jul 18, 2006

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.

@rupole rupole mannequin closed this as completed Jul 18, 2006
@rupole rupole mannequin added the OS-windows label Jul 18, 2006
@rupole rupole mannequin closed this as completed Jul 18, 2006
@rupole rupole mannequin added the OS-windows label Jul 18, 2006
@loewis
Copy link
Mannequin

loewis mannequin commented Jul 24, 2006

Logged In: YES
user_id=21627

Thanks for the report. Fixed with r50797 and r50798

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants