Fix DirectoryExistsAsync SyncFileSystem
This commit is contained in:
parent
23790b9652
commit
1981d72e50
|
@ -477,7 +477,7 @@ namespace Tesses.VirtualFilesystem
|
||||||
public async Task<bool> DirectoryExistsAsync(UnixPath path, CancellationToken token = default)
|
public async Task<bool> DirectoryExistsAsync(UnixPath path, CancellationToken token = default)
|
||||||
{
|
{
|
||||||
if(token.IsCancellationRequested) return false;
|
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)
|
public IEnumerable<UnixPath> EnumerateDirectories(UnixPath path)
|
||||||
|
|
|
@ -14,9 +14,9 @@
|
||||||
<PackageId>Tesses.VirtualFilesystem</PackageId>
|
<PackageId>Tesses.VirtualFilesystem</PackageId>
|
||||||
<Author>Mike Nolan</Author>
|
<Author>Mike Nolan</Author>
|
||||||
<Company>Tesses</Company>
|
<Company>Tesses</Company>
|
||||||
<Version>1.0.0</Version>
|
<Version>1.0.1</Version>
|
||||||
<AssemblyVersion>1.0.0</AssemblyVersion>
|
<AssemblyVersion>1.0.1</AssemblyVersion>
|
||||||
<FileVersion>1.0.0</FileVersion>
|
<FileVersion>1.0.1</FileVersion>
|
||||||
<Description>Another VirtualFilesystem for .NET</Description>
|
<Description>Another VirtualFilesystem for .NET</Description>
|
||||||
<PackageLicenseExpression>GPL-3.0-only</PackageLicenseExpression>
|
<PackageLicenseExpression>GPL-3.0-only</PackageLicenseExpression>
|
||||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
||||||
|
|
Loading…
Reference in New Issue