diff --git a/src/libraries/Common/src/Interop/Unix/Interop.IOErrors.cs b/src/libraries/Common/src/Interop/Unix/Interop.IOErrors.cs index 1d1d64a969bb13..64f5aff727fa29 100644 --- a/src/libraries/Common/src/Interop/Unix/Interop.IOErrors.cs +++ b/src/libraries/Common/src/Interop/Unix/Interop.IOErrors.cs @@ -50,7 +50,7 @@ internal static long CheckIo(long result, string? path = null, bool isDirError = /// internal static void ThrowIOExceptionForLastError() { - ThrowExceptionForIoErrno(Sys.GetLastErrorInfo(), path: null, isDirectory: false); + ThrowExceptionForIoErrno(Sys.GetLastErrorInfo(), path: null, isDirError: false); } ///