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

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