Dir.readFile/readFileAlloc: take advantage of `.allow_directory = false` on Windows

Since we know the read will fail for directories, we can take advantage
of Windows being able to fail with IsDir during open to avoid needing to
wait until the read to find out about the directory-ness of the file.
e442a0ecc2Ryan Liptak committed on 12/24/2025, 6:15:11 AM· committed by Andrew Kelleyparentad08117
1 file changedLine totals unavailable