@@ -239,7 +239,7 @@ internal static bool NonWindowsIsHardLink(FileSystemInfo fileInfo)
239239
240240 internal static bool NonWindowsIsSymLink ( FileSystemInfo fileInfo )
241241 {
242- return Unix . IsSymLink ( fileInfo ) ;
242+ return Unix . NativeMethods . IsSymLink ( fileInfo . FullName ) ;
243243 }
244244
245245 internal static string NonWindowsInternalGetTarget ( SafeFileHandle handle )
@@ -250,12 +250,12 @@ internal static string NonWindowsInternalGetTarget(SafeFileHandle handle)
250250
251251 internal static string NonWindowsInternalGetTarget ( string path )
252252 {
253- return Unix . FollowSymLink ( path ) ;
253+ return Unix . NativeMethods . FollowSymLink ( path ) ;
254254 }
255255
256256 internal static string NonWindowsGetUserFromPid ( int path )
257257 {
258- return Unix . GetUserFromPid ( path ) ;
258+ return Unix . NativeMethods . GetUserFromPid ( path ) ;
259259 }
260260
261261 #if CORECLR
@@ -344,7 +344,7 @@ internal static bool NonWindowsIsDirectory(string path)
344344
345345 internal static bool NonWindowsIsExecutable ( string path )
346346 {
347- return Unix . IsExecutable ( path ) ;
347+ return Unix . NativeMethods . IsExecutable ( path ) ;
348348 }
349349
350350 internal static uint NonWindowsGetThreadId ( )
@@ -516,16 +516,6 @@ public static bool IsHardLink(FileSystemInfo fs)
516516
517517 }
518518
519- public static bool IsSymLink ( FileSystemInfo fs )
520- {
521- return NativeMethods . IsSymLink ( fs . FullName ) ;
522- }
523-
524- public static bool IsExecutable ( string filePath )
525- {
526- return NativeMethods . IsExecutable ( filePath ) ;
527- }
528-
529519 public static void SetDate ( SetDateInfoInternal info )
530520 {
531521 int ret = NativeMethods . SetDate ( info ) ;
@@ -542,16 +532,6 @@ public static bool CreateHardLink(string path, string strTargetPath)
542532 return ret == 1 ? true : false ;
543533 }
544534
545- public static string FollowSymLink ( string path )
546- {
547- return NativeMethods . FollowSymLink ( path ) ;
548- }
549-
550- public static string GetUserFromPid ( int pid )
551- {
552- return NativeMethods . GetUserFromPid ( pid ) ;
553- }
554-
555535 [ StructLayout ( LayoutKind . Sequential ) ]
556536 internal class SetDateInfoInternal
557537 {
0 commit comments