fs: Handle io::ErrorKind::NotADirectory in fs::metadata (#42370)

New error variants were stabilized in 1.83, and this might've led to us
mis-handling not-a-directory errors.

Co-authored-by: Dino <dino@zed.dev>

Release Notes:

- N/A

Co-authored-by: Dino <dino@zed.dev>
6e1d86f311Piotr Osiewicz committed on 11/10/2025, 5:18:40 PM· committed by GitHubparenta3f04e8
1 file changedLine totals unavailable