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