From 94386b640c4d70305bf12f7da9e2184694277587 Mon Sep 17 00:00:00 2001 From: Quinton Miller Date: Thu, 24 Oct 2024 05:27:25 +0800 Subject: [PATCH] Treat `WinError::ERROR_DIRECTORY` as an error for non-existent files (#15114) --- src/crystal/system/win32/file.cr | 1 + 1 file changed, 1 insertion(+) diff --git a/src/crystal/system/win32/file.cr b/src/crystal/system/win32/file.cr index 7b7b443ce310..b6f9cf2b7ccd 100644 --- a/src/crystal/system/win32/file.cr +++ b/src/crystal/system/win32/file.cr @@ -116,6 +116,7 @@ module Crystal::System::File WinError::ERROR_FILE_NOT_FOUND, WinError::ERROR_PATH_NOT_FOUND, WinError::ERROR_INVALID_NAME, + WinError::ERROR_DIRECTORY, } def self.check_not_found_error(message, path)