diff options
Diffstat (limited to 'src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs')
-rw-r--r-- | src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs b/src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs index 81ea613d6b..6a4b97ba67 100644 --- a/src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs +++ b/src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs @@ -67,7 +67,7 @@ namespace System.IO // FileNotFound only if the containing directory exists. bool isDirectory = (error.Error == Interop.Error.ENOENT) && - (overwrite || !DirectoryExists(Path.GetDirectoryName(PathInternal.TrimEndingDirectorySeparator(destFullPath))!)); + (overwrite || !DirectoryExists(Path.GetDirectoryName(PathInternal.TrimEndingDirectorySeparator(destFullPath)))); Interop.CheckIo( error.Error, |