10 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.Framework.UnitTests (9)
FileUtilities_Tests.cs (9)
533
Assert.False(FileUtilities.
FileOrDirectoryExistsNoThrow
("||"));
534
Assert.False(FileUtilities.
FileOrDirectoryExistsNoThrow
(isWindows ? @"c:\doesnot_exist" : "/doesnot_exist"));
535
Assert.True(FileUtilities.
FileOrDirectoryExistsNoThrow
(isWindows ? @"c:\" : "/"));
536
Assert.True(FileUtilities.
FileOrDirectoryExistsNoThrow
(Path.GetTempPath()));
543
Assert.True(FileUtilities.
FileOrDirectoryExistsNoThrow
(path));
565
Assert.True(FileUtilities.
FileOrDirectoryExistsNoThrow
(inputPath));
566
Assert.False(FileUtilities.
FileOrDirectoryExistsNoThrow
(inputPath.Replace('\\', 'X')));
587
Assert.True(FileUtilities.
FileOrDirectoryExistsNoThrow
(inputPath));
588
Assert.False(FileUtilities.
FileOrDirectoryExistsNoThrow
(inputPath.Replace('\\', 'X')));