Fix DirectoryExistsAsync SyncFileSystem

This commit is contained in:
Mike Nolan 2023-09-06 19:36:14 -05:00
parent 23790b9652
commit 1981d72e50
2 changed files with 4 additions and 4 deletions

View File

@ -477,7 +477,7 @@ namespace Tesses.VirtualFilesystem
public async Task<bool> DirectoryExistsAsync(UnixPath path, CancellationToken token = default)
{
if(token.IsCancellationRequested) return false;
return await Task.Run<bool>(()=>DirectoryExistsAsync(path));
return await Task.Run<bool>(()=>DirectoryExists(path));
}
public IEnumerable<UnixPath> EnumerateDirectories(UnixPath path)

View File

@ -14,9 +14,9 @@
<PackageId>Tesses.VirtualFilesystem</PackageId>
<Author>Mike Nolan</Author>
<Company>Tesses</Company>
<Version>1.0.0</Version>
<AssemblyVersion>1.0.0</AssemblyVersion>
<FileVersion>1.0.0</FileVersion>
<Version>1.0.1</Version>
<AssemblyVersion>1.0.1</AssemblyVersion>
<FileVersion>1.0.1</FileVersion>
<Description>Another VirtualFilesystem for .NET</Description>
<PackageLicenseExpression>GPL-3.0-only</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>