Fix it some more

This commit is contained in:
Mike Nolan 2023-09-06 20:39:08 -05:00
parent 1981d72e50
commit 60a1f8e7d3
2 changed files with 13 additions and 11 deletions

View File

@ -454,7 +454,7 @@ namespace Tesses.VirtualFilesystem
public virtual async Task CreateSymlinkAsync(UnixPath src, UnixPath dest, CancellationToken token = default)
{
if(token.IsCancellationRequested) return;
await Task.Run(()=>CreateHardlink(src,dest));
await Task.Run(()=>CreateSymlink(src,dest));
}
public abstract void DeleteDirectory(UnixPath path);
@ -644,7 +644,7 @@ namespace Tesses.VirtualFilesystem
public virtual async Task SetLastWriteTimeAsync(UnixPath path, DateTime time, CancellationToken token = default)
{
if(token.IsCancellationRequested) return;
await Task.Run(()=>SetLastWriteTimeAsync(path,time));
await Task.Run(()=>SetLastWriteTime(path,time));
}
public virtual async Task<bool> SymlinkExistsAsync(UnixPath file, CancellationToken token = default)
@ -686,12 +686,13 @@ namespace Tesses.VirtualFilesystem
public EntryPointer OpenEntry(UnixPath path)
{
if(SymlinkExists(path))
{
return new SymlinkPointer(this,path);
}else
if(FileExists(path))
{
return new FilePointer(this,path);
}else if(SymlinkExists(path))
{
return new SymlinkPointer(this,path);
}
else if(DirectoryExists(path)){
return new DirectoryPointer(this,path);
@ -780,12 +781,13 @@ namespace Tesses.VirtualFilesystem
}
public EntryPointer OpenEntry(UnixPath path)
{
if(SymlinkExists(path))
{
return new SymlinkPointer(this,path);
}else
if(FileExists(path))
{
return new FilePointer(this,path);
}else if(SymlinkExists(path))
{
return new SymlinkPointer(this,path);
}
else if(DirectoryExists(path)){
return new DirectoryPointer(this,path);

View File

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