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

            FileSystemJunctionPoint.Create(virtualPath, targetPath, overwrite);
        }
예제 #2
0
        public static void CreateJunctionPoint(this IFileSystem fileSystem,
                                               JunctionPoint junctionPoint,
                                               bool overwrite)
        {
            if (fileSystem is IJunctionPointFeature junctionPointFeature)
            {
                junctionPointFeature.CreateJunctionPoint(junctionPoint, overwrite);
                return;
            }

            throw new NotSupportedException(
                      $"Junction point is not supported in file system {fileSystem.GetType().Name}");
        }