public void CreateJunctionPoint(JunctionPoint junctionPoint, bool overwrite) { string virtualPath = junctionPoint.VirtualPath.WindowsPath(); string targetPath = junctionPoint.TargetPath.WindowsPath(); FileSystemJunctionPoint.Create(virtualPath, targetPath, overwrite); }
public UPath GetJunctionTargetPath(UPath virtualPath) { string windowsVirtualPath = virtualPath.WindowsPath(); if (!JunctionPointExists(virtualPath)) { throw new IOException("There is no junction path for " + virtualPath.FullName); } string fullPath = FileSystemJunctionPoint.GetTarget(windowsVirtualPath); return(new UPath(fullPath)); }
public void DeleteJunctionPoint(UPath virtualPath) => FileSystemJunctionPoint.Delete(virtualPath.WindowsPath());
public bool JunctionPointExists(UPath virtualPath) => FileSystemJunctionPoint.Exists(virtualPath.WindowsPath());