public virtual string GetSymlinkTarget(string source)
        {
            var strDest = "";

            using (var handle = PlatformFileSystem.OpenSymlinkDirectory(source))
            {
                strDest = PlatformFileSystem.SymlinkTargetFromHandle(handle);
            }

            return(strDest);
        }
Exemple #2
0
 public FileSystemManagerTestContext()
 {
     fileSystem = Substitute.For <PlatformFileSystem>();
     manager    = new FileSystemManager(fileSystem);
 }
 public FileSystemManager(PlatformFileSystem fileSystem)
 {
     this.fileSystem = fileSystem;
 }
 public FileSystemManagerTestContext()
 {
     fileSystem = Substitute.For<PlatformFileSystem>();
     manager = new FileSystemManager(fileSystem);
 }
 public FileSystemManager(PlatformFileSystem fileSystem)
 {
     this.fileSystem = fileSystem;
 }