From cc3600baefec19c5e0a85ccc1d2f683520f503a4 Mon Sep 17 00:00:00 2001 From: Alexandre Zollinger Chohfi Date: Mon, 2 Dec 2019 11:26:14 -0800 Subject: [PATCH 1/2] Revert "Workaround Pri.LongPath regression on DirectoryInfo.Exists." This reverts commit a53de363455eec120d53666f1f854fa3e2ca881e. --- src/Cake.LongPath.Module/LongPathDirectory.cs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/Cake.LongPath.Module/LongPathDirectory.cs b/src/Cake.LongPath.Module/LongPathDirectory.cs index 7515dc0..45580bb 100644 --- a/src/Cake.LongPath.Module/LongPathDirectory.cs +++ b/src/Cake.LongPath.Module/LongPathDirectory.cs @@ -26,22 +26,7 @@ internal class LongPathDirectory : IDirectory /// The path. Path IFileSystemInfo.Path => Path; - public bool Exists - { - get - { - // Workaround until https://github.com/peteraritchie/LongPath/issues/82 is fixed - try - { - return Directory.Exists; - } - catch - { - return false; - } - } - } - + public bool Exists => Directory.Exists; public bool Hidden => (Directory.Attributes & FileAttributes.Hidden) == FileAttributes.Hidden; /// From b9b87e264dbc1dae6d18740c0f694efd8c17a643 Mon Sep 17 00:00:00 2001 From: Alexandre Zollinger Chohfi Date: Mon, 2 Dec 2019 11:38:26 -0800 Subject: [PATCH 2/2] Updated Pri.LongPath to 2.0.51. --- src/Cake.LongPath.Module/Cake.LongPath.Module.csproj | 4 ++-- src/Cake.LongPath.Module/packages.config | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Cake.LongPath.Module/Cake.LongPath.Module.csproj b/src/Cake.LongPath.Module/Cake.LongPath.Module.csproj index 84caf78..e862be5 100644 --- a/src/Cake.LongPath.Module/Cake.LongPath.Module.csproj +++ b/src/Cake.LongPath.Module/Cake.LongPath.Module.csproj @@ -37,8 +37,8 @@ ..\packages\Cake.Core.0.33.0\lib\net46\Cake.Core.dll - - ..\packages\Pri.LongPath.2.0.47\lib\net45\Pri.LongPath.dll + + ..\packages\Pri.LongPath.2.0.51\lib\net45\Pri.LongPath.dll diff --git a/src/Cake.LongPath.Module/packages.config b/src/Cake.LongPath.Module/packages.config index 2af743d..2fa667d 100644 --- a/src/Cake.LongPath.Module/packages.config +++ b/src/Cake.LongPath.Module/packages.config @@ -1,5 +1,5 @@  - + \ No newline at end of file