Ejemplo n.º 1
0
        public void CreateJunctionPoint(JunctionPoint junctionPoint, bool overwrite)
        {
            string virtualPath = junctionPoint.VirtualPath.WindowsPath();
            string targetPath  = junctionPoint.TargetPath.WindowsPath();

            FileSystemJunctionPoint.Create(virtualPath, targetPath, overwrite);
        }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
 public void DeleteJunctionPoint(UPath virtualPath) => FileSystemJunctionPoint.Delete(virtualPath.WindowsPath());
Ejemplo n.º 4
0
 public bool JunctionPointExists(UPath virtualPath) => FileSystemJunctionPoint.Exists(virtualPath.WindowsPath());