Esempio 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);
        }
Esempio 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));
        }
Esempio n. 3
0
 public void DeleteJunctionPoint(UPath virtualPath) => FileSystemJunctionPoint.Delete(virtualPath.WindowsPath());
Esempio n. 4
0
 public bool JunctionPointExists(UPath virtualPath) => FileSystemJunctionPoint.Exists(virtualPath.WindowsPath());