Fix it some more
This commit is contained in:
		
							parent
							
								
									1981d72e50
								
							
						
					
					
						commit
						60a1f8e7d3
					
				| 
						 | 
					@ -454,7 +454,7 @@ namespace Tesses.VirtualFilesystem
 | 
				
			||||||
        public virtual async Task CreateSymlinkAsync(UnixPath src, UnixPath dest, CancellationToken token = default)
 | 
					        public virtual async Task CreateSymlinkAsync(UnixPath src, UnixPath dest, CancellationToken token = default)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            if(token.IsCancellationRequested) return;
 | 
					            if(token.IsCancellationRequested) return;
 | 
				
			||||||
            await Task.Run(()=>CreateHardlink(src,dest));
 | 
					            await Task.Run(()=>CreateSymlink(src,dest));
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public abstract void DeleteDirectory(UnixPath path);
 | 
					        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)
 | 
					        public virtual async Task SetLastWriteTimeAsync(UnixPath path, DateTime time, CancellationToken token = default)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            if(token.IsCancellationRequested) return;
 | 
					            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)
 | 
					        public virtual async Task<bool> SymlinkExistsAsync(UnixPath file, CancellationToken token = default)
 | 
				
			||||||
| 
						 | 
					@ -686,12 +686,13 @@ namespace Tesses.VirtualFilesystem
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public EntryPointer OpenEntry(UnixPath path)
 | 
					        public EntryPointer OpenEntry(UnixPath path)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
 | 
					            if(SymlinkExists(path))
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                return new SymlinkPointer(this,path);
 | 
				
			||||||
 | 
					            }else
 | 
				
			||||||
            if(FileExists(path))
 | 
					            if(FileExists(path))
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                return new FilePointer(this,path);
 | 
					                return new FilePointer(this,path);
 | 
				
			||||||
            }else if(SymlinkExists(path))
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                return new SymlinkPointer(this,path);
 | 
					 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            else if(DirectoryExists(path)){
 | 
					            else if(DirectoryExists(path)){
 | 
				
			||||||
                return new DirectoryPointer(this,path);
 | 
					                return new DirectoryPointer(this,path);
 | 
				
			||||||
| 
						 | 
					@ -780,12 +781,13 @@ namespace Tesses.VirtualFilesystem
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
          public EntryPointer OpenEntry(UnixPath path)
 | 
					          public EntryPointer OpenEntry(UnixPath path)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
 | 
					            if(SymlinkExists(path))
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                return new SymlinkPointer(this,path);
 | 
				
			||||||
 | 
					            }else
 | 
				
			||||||
            if(FileExists(path))
 | 
					            if(FileExists(path))
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                return new FilePointer(this,path);
 | 
					                return new FilePointer(this,path);
 | 
				
			||||||
            }else if(SymlinkExists(path))
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                return new SymlinkPointer(this,path);
 | 
					 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            else if(DirectoryExists(path)){
 | 
					            else if(DirectoryExists(path)){
 | 
				
			||||||
                return new DirectoryPointer(this,path);
 | 
					                return new DirectoryPointer(this,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.1</Version>
 | 
					     <Version>1.0.2</Version>
 | 
				
			||||||
    <AssemblyVersion>1.0.1</AssemblyVersion>
 | 
					    <AssemblyVersion>1.0.2</AssemblyVersion>
 | 
				
			||||||
    <FileVersion>1.0.1</FileVersion>
 | 
					    <FileVersion>1.0.2</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