diff options
-rwxr-xr-x | main/contrib/Sharpen/Sharpen/FilePath.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/contrib/Sharpen/Sharpen/FilePath.cs b/main/contrib/Sharpen/Sharpen/FilePath.cs index 7b675a50c5..95ac63b39d 100755 --- a/main/contrib/Sharpen/Sharpen/FilePath.cs +++ b/main/contrib/Sharpen/Sharpen/FilePath.cs @@ -306,9 +306,9 @@ namespace Sharpen // Don't change the case of this method, since ngit does reflection on it public bool canExecute () { - if (!File.Exists (path)) - return false; UnixFileInfo fi = new UnixFileInfo (path); + if (!fi.Exists) + return false; return 0 != (fi.FileAccessPermissions & (FileAccessPermissions.UserExecute | FileAccessPermissions.GroupExecute | FileAccessPermissions.OtherExecute)); } |