64 references to ReparsePoint
aspire (8)
Bundles\BundleService.cs (8)
501targets[dir] = ReparsePoint.IsReparsePoint(linkPath) ? ReparsePoint.GetTarget(linkPath) : null; 527if (Directory.Exists(linkPath) && !ReparsePoint.IsReparsePoint(linkPath)) 544ReparsePoint.CreateOrReplace(linkPath, target); 571ReparsePoint.RemoveIfExists(linkPath); 575ReparsePoint.CreateOrReplace(linkPath, priorTarget); 693if (!ReparsePoint.IsReparsePoint(linkPath)) 698var target = ReparsePoint.GetTarget(linkPath);
Aspire.Cli.Tests (56)
BundleServiceIntegrationTests.cs (6)
59Assert.True(ReparsePoint.IsReparsePoint(bundleLink), "bundle/ should be a reparse point"); 374Assert.True(ReparsePoint.IsReparsePoint(bundleLink), "bundle/ should be a reparse point under the tool RID directory"); 438Assert.True(ReparsePoint.IsReparsePoint(bundleLink), 523var v1Target = ReparsePoint.GetTarget(bundleLink); 533var v2Target = ReparsePoint.GetTarget(bundleLink); 595ReparsePoint.RemoveIfExists(linkPath);
Git\GitWorktreeTests.cs (6)
93ReparsePoint.CreateOrReplace(aliasRoot, worktreeRoot); 111ReparsePoint.RemoveIfExists(aliasRoot); 150ReparsePoint.CreateOrReplace(aliasDirectory, adminDirectory); 173ReparsePoint.RemoveIfExists(aliasDirectory); 251ReparsePoint.CreateOrReplace(aliasRoot, worktreeRoot); 273ReparsePoint.RemoveIfExists(aliasRoot);
Layout\LayoutDiscoveryReparsePointTests.cs (3)
109ReparsePoint.CreateOrReplace(bundleLink, versionsDir); 111Assert.True(ReparsePoint.IsReparsePoint(bundleLink)); 127ReparsePoint.RemoveIfExists(bundleLink);
Utils\ReparsePointTests.cs (41)
21ReparsePoint.CreateOrReplace(link, target); 25Assert.True(ReparsePoint.IsReparsePoint(link)); 33ReparsePoint.RemoveIfExists(link); 51ReparsePoint.CreateOrReplace(link, target1); 54ReparsePoint.CreateOrReplace(link, target2); 59Assert.True(ReparsePoint.IsReparsePoint(link)); 65ReparsePoint.RemoveIfExists(link); 86Assert.Throws<InvalidOperationException>(() => ReparsePoint.CreateOrReplace(real, target)); 100Assert.False(ReparsePoint.IsReparsePoint(dir)); 107Assert.False(ReparsePoint.IsReparsePoint(Path.Combine(workspace.WorkspaceRoot.FullName, "nope"))); 122ReparsePoint.CreateOrReplace(link, target); 124ReparsePoint.RemoveIfExists(link); 138ReparsePoint.RemoveIfExists(dir); 147ReparsePoint.RemoveIfExists(Path.Combine(workspace.WorkspaceRoot.FullName, "missing")); 159var resolvedTarget = ReparsePoint.ResolveTargetPath(link, Path.Combine("versions", "v1")); 183Assert.False(ReparsePoint.CanFollowDirectoryReparsePoint(link)); 187ReparsePoint.RemoveIfExists(link); 216ReparsePoint.CreateWindowsJunction(link, target); 221Assert.True(ReparsePoint.IsReparsePoint(link)); 229ReparsePoint.RemoveIfExists(link); 248ReparsePoint.CreateWindowsJunction(link, target); 268ReparsePoint.RemoveIfExists(link); 287ReparsePoint.CreateWindowsJunction(link, target); 290ReparsePoint.RemoveIfExists(link); 309ReparsePoint.CreateWindowsJunction(link, target); 315var linkTarget = ReparsePoint.GetTarget(link); 325ReparsePoint.RemoveIfExists(link); 359ReparsePoint.CreateWindowsJunction(link, targetV1); 360Assert.Equal(Win32Constants.IO_REPARSE_TAG_MOUNT_POINT, ReparsePoint.GetReparseTag(link)); 368ReparsePoint.CreateOrReplace(link, targetV2); 371Assert.True(ReparsePoint.IsReparsePoint(link)); 374var resolvedTarget = ReparsePoint.GetTarget(link); 389ReparsePoint.RemoveIfExists(link); 410if (!ReparsePoint.CanFollowDirectoryReparsePoint(probe)) 423ReparsePoint.RemoveIfExists(probe); 439ReparsePoint.CreateWindowsJunction(link, targetV1); 440Assert.Equal(Win32Constants.IO_REPARSE_TAG_MOUNT_POINT, ReparsePoint.GetReparseTag(link)); 446ReparsePoint.CreateOrReplace(link, targetV2); 449Assert.True(ReparsePoint.IsReparsePoint(link)); 451Assert.Equal(Win32Constants.IO_REPARSE_TAG_SYMLINK, ReparsePoint.GetReparseTag(link)); 461ReparsePoint.RemoveIfExists(link);