6 references to FileOrDirectoryExistsNoThrow
Microsoft.Build (1)
Evaluation\Conditionals\FunctionCallExpressionNode.cs (1)
53
if (item == null || !(state.LoadedProjectsCache?.TryGet(item) != null || FileUtilities.
FileOrDirectoryExistsNoThrow
(item, state.FileSystem)))
Microsoft.Build.Engine.UnitTests (5)
FileUtilities_Tests.cs (5)
552
Assert.False(FileUtilities.
FileOrDirectoryExistsNoThrow
("||"));
553
Assert.False(FileUtilities.
FileOrDirectoryExistsNoThrow
(isWindows ? @"c:\doesnot_exist" : "/doesnot_exist"));
554
Assert.True(FileUtilities.
FileOrDirectoryExistsNoThrow
(isWindows ? @"c:\" : "/"));
555
Assert.True(FileUtilities.
FileOrDirectoryExistsNoThrow
(Path.GetTempPath()));
562
Assert.True(FileUtilities.
FileOrDirectoryExistsNoThrow
(path));