@@ -16083,7 +16083,7 @@ DirEntry_from_file_directory_information(PyObject *module, path_t *path, FILE_DI
16083
16083
result -> st_ino = fileDirectoryInformation -> FileIndex ;
16084
16084
}
16085
16085
16086
- #if 0 /* Fix this */
16086
+ #if 0 /* TODO: Fix this */
16087
16087
/* bpo-37834: Only actual symlinks set the S_IFLNK flag. But lstat() will
16088
16088
open other name surrogate reparse points without traversing them. To
16089
16089
detect/handle these, check st_file_attributes and st_reparse_tag. */
@@ -16655,31 +16655,6 @@ os_scandir_impl(PyObject *module, path_t *path)
16655
16655
}
16656
16656
iterator -> fileDirectoryInformationSize = INITIAL_FILE_DIRECTORY_INFORMATION_ENTRY_SIE ;
16657
16657
16658
- #if 0 /* Does not seem to be neccessary according to MS-Docs */
16659
- Py_BEGIN_ALLOW_THREADS
16660
- ntstatus = _Py_NtQueryDirectoryFile (
16661
- iterator -> directoryHandle , /* FileHandle */
16662
- NULL , /* Event */
16663
- NULL , /* ApcRoutine (callback) */
16664
- NULL , /* ApcContext (for callback routine) */
16665
- & ioStatusBlock , /* IoStatusBlock */
16666
- NULL , /* FileInformation (output) */
16667
- 0 , /* Length (maximum length of output buffer) */
16668
- FileDirectoryInformation , /* FileInformationClass */
16669
- TRUE, /* ReturnSingleEntry */
16670
- NULL , /* FileName */
16671
- TRUE /* RestartScan */
16672
- );
16673
- Py_END_ALLOW_THREADS
16674
- if (!NT_SUCCESS (ntstatus ))
16675
- {
16676
- path_error (& iterator -> path );
16677
- dosErrorCode = _Py_RtlNtStatusToDosError (ntstatus );
16678
- SetLastError (dosErrorCode );
16679
- goto error ;
16680
- }
16681
- #endif
16682
-
16683
16658
#else /* POSIX */
16684
16659
errno = 0 ;
16685
16660
#ifdef HAVE_FDOPENDIR
0 commit comments