diff --git a/Tesses.VirtualFilesystem/Class1.cs b/Tesses.VirtualFilesystem/Class1.cs index 71f4398..3530693 100644 --- a/Tesses.VirtualFilesystem/Class1.cs +++ b/Tesses.VirtualFilesystem/Class1.cs @@ -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 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); diff --git a/Tesses.VirtualFilesystem/Tesses.VirtualFilesystem.csproj b/Tesses.VirtualFilesystem/Tesses.VirtualFilesystem.csproj index 545f16a..8f6757e 100644 --- a/Tesses.VirtualFilesystem/Tesses.VirtualFilesystem.csproj +++ b/Tesses.VirtualFilesystem/Tesses.VirtualFilesystem.csproj @@ -14,9 +14,9 @@ Tesses.VirtualFilesystem Mike Nolan Tesses - 1.0.1 - 1.0.1 - 1.0.1 + 1.0.2 + 1.0.2 + 1.0.2 Another VirtualFilesystem for .NET GPL-3.0-only true