summaryrefslogtreecommitdiff
path: root/src/System.Private.CoreLib/shared/Microsoft/Win32/SafeHandles
diff options
context:
space:
mode:
authorMarco Rossignoli <marco.rossignoli@gmail.com>2019-05-28 20:14:05 +0200
committerDan Moseley <danmose@microsoft.com>2019-05-28 11:14:05 -0700
commite44730085c65ddb98dad1a3059b4e8f7a1ae33ea (patch)
tree8a759bc11ea5277f5b4de5734ea63285e07f978b /src/System.Private.CoreLib/shared/Microsoft/Win32/SafeHandles
parent89517b04ae89a39b4bde720f8cca87cfa4f12d2e (diff)
downloadcoreclr-e44730085c65ddb98dad1a3059b4e8f7a1ae33ea.tar.gz
coreclr-e44730085c65ddb98dad1a3059b4e8f7a1ae33ea.tar.bz2
coreclr-e44730085c65ddb98dad1a3059b4e8f7a1ae33ea.zip
Expose Path.TrimEndingDirectorySeparator (#20805)
* expose TrimEndingDirectorySeparator * address PR feedback * updates * address PR feedback * fix comment
Diffstat (limited to 'src/System.Private.CoreLib/shared/Microsoft/Win32/SafeHandles')
-rw-r--r--src/System.Private.CoreLib/shared/Microsoft/Win32/SafeHandles/SafeFileHandle.Unix.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Private.CoreLib/shared/Microsoft/Win32/SafeHandles/SafeFileHandle.Unix.cs b/src/System.Private.CoreLib/shared/Microsoft/Win32/SafeHandles/SafeFileHandle.Unix.cs
index 602537a305..7adc7d019c 100644
--- a/src/System.Private.CoreLib/shared/Microsoft/Win32/SafeHandles/SafeFileHandle.Unix.cs
+++ b/src/System.Private.CoreLib/shared/Microsoft/Win32/SafeHandles/SafeFileHandle.Unix.cs
@@ -52,7 +52,7 @@ namespace Microsoft.Win32.SafeHandles
bool isDirectory = (error.Error == Interop.Error.ENOENT) &&
((flags & Interop.Sys.OpenFlags.O_CREAT) != 0
- || !DirectoryExists(Path.GetDirectoryName(PathInternal.TrimEndingDirectorySeparator(path!))!));
+ || !DirectoryExists(Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(path!))!));
Interop.CheckIo(
error.Error,