Skip to content

Commit

Permalink
Merge branch 'azchohfi-fix15' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
devlead committed Feb 9, 2021
2 parents 66a7deb + b9b87e2 commit 9dba4ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
4 changes: 2 additions & 2 deletions src/Cake.LongPath.Module/Cake.LongPath.Module.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
<Reference Include="Cake.Core, Version=0.33.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Cake.Core.0.33.0\lib\net46\Cake.Core.dll</HintPath>
</Reference>
<Reference Include="Pri.LongPath, Version=2.0.47.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Pri.LongPath.2.0.47\lib\net45\Pri.LongPath.dll</HintPath>
<Reference Include="Pri.LongPath, Version=2.0.51.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Pri.LongPath.2.0.51\lib\net45\Pri.LongPath.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
17 changes: 1 addition & 16 deletions src/Cake.LongPath.Module/LongPathDirectory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,7 @@ internal class LongPathDirectory : IDirectory
/// <value>The path.</value>
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;

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Cake.LongPath.Module/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Cake.Core" version="0.33.0" targetFramework="net46" developmentDependency="true" />
<package id="Pri.LongPath" version="2.0.47" targetFramework="net46" />
<package id="Pri.LongPath" version="2.0.51" targetFramework="net46" />
</packages>

0 comments on commit 9dba4ae

Please sign in to comment.