64 references to FileUtil
System.Web (64)
CachedPathData.cs (4)
184
FileUtil
.PhysicalPathStatus(physicalFilePath, false, false, out exists, out isDirectory);
247
FileUtil
.PhysicalPathStatus(physicalPath, false, false, out exists, out isDirectory);
414
FileUtil
.CheckSuspiciousPhysicalPath(physicalPath);
578
FileUtil
.CheckSuspiciousPhysicalPath(physicalPath);
Compilation\AssemblyBuilder.cs (2)
372
if (!
FileUtil
.DirectoryExists(resourceDir)) {
1289
generatedCodeFile =
FileUtil
.TruncatePathIfNeeded(generatedCodeFile, 10 /*length of extension */);
Compilation\BuildManager.cs (3)
820
if (
FileUtil
.FileExists(path)) {
3051
sourcePhysicalDir =
FileUtil
.FixUpPhysicalDirectory(sourcePhysicalDir);
3052
string destPhysicalDir =
FileUtil
.FixUpPhysicalDirectory(_precompTargetPhysicalDir);
Compilation\BuildResult.cs (4)
544
string assemblyDir =
FileUtil
.RemoveTrailingDirectoryBackSlash(f.Directory.FullName);
546
s_codegenDir =
FileUtil
.RemoveTrailingDirectoryBackSlash(HttpRuntime.CodegenDir);
561
return (!
FileUtil
.FileExists(path) || DiskBuildResultCache.HasDotDeleteFile(path));
1260
Debug.Assert(
FileUtil
.FileExists(_ccuPreservationFileName), _ccuPreservationFileName);
Compilation\BuildResultCache.cs (7)
413
if (!
FileUtil
.DirectoryExists(_cacheDir)) {
488
cacheKey =
FileUtil
.TruncatePathIfNeeded(cacheKey, 9 /*length of ".compiled"*/);
648
if (
FileUtil
.FileExists(baseName)) {
718
if (!
FileUtil
.FileExists(fileName)) {
754
if (!
FileUtil
.DirectoryExists(hashDirPath)) {
856
if (
FileUtil
.FileExists(codegen + baseName + ".dll"))
861
if (
FileUtil
.FileExists(codegen + BuildManager.WebAssemblyNamePrefix + baseName + ".dll"))
Compilation\ClientBuildManager.cs (1)
614
_physicalPath =
FileUtil
.FixUpPhysicalDirectory(physicalPath);
Compilation\PreservationFileReader.cs (1)
38
if (!
FileUtil
.FileExists(preservationFile)) {
Configuration\CompilationSection.cs (1)
842
if (!
FileUtil
.DirectoryExists(binPath)) {
Configuration\ExpressServerConfig.cs (2)
97
if (
FileUtil
.IsSuspiciousPhysicalPath(physicalPath)) {
381
if (
FileUtil
.IsSuspiciousPhysicalPath(physicalPath)) {
Configuration\MetabaseServerConfig.cs (1)
285
if (
FileUtil
.IsSuspiciousPhysicalPath(physicalPath)) {
Configuration\ProcessHostMapPath.cs (1)
287
if (
FileUtil
.IsSuspiciousPhysicalPath(physicalPath)) {
Configuration\ProcessHostServerConfig.cs (1)
87
if (
FileUtil
.IsSuspiciousPhysicalPath(physicalPath)) {
Configuration\UserMapPath.cs (1)
144
if (_pathsAreLocal &&
FileUtil
.IsSuspiciousPhysicalPath(physicalPath)) {
Configuration\VirtualDirectoryMapping.cs (2)
87
if (
FileUtil
.IsSuspiciousPhysicalPath(physicalDirectory)) {
139
FileUtil
.IsSuspiciousPhysicalPath(configFilename)) {
Configuration\WebConfigurationHost.cs (2)
439
return
FileUtil
.DirectoryExists(physicalPath, true);
469
FileUtil
.PhysicalPathStatus(directory, true, false, out exists, out isDirectory);
ErrorFormatter.cs (1)
1107
if (_physicalPath == null &&
FileUtil
.FileExists(fileName)) {
FileChangesMonitor.cs (2)
1498
path =
FileUtil
.RemoveTrailingDirectoryBackSlash(path);
1973
dir =
FileUtil
.RemoveTrailingDirectoryBackSlash(dir);
Hosting\ApplicationManager.cs (4)
349
physicalPath =
FileUtil
.FixUpPhysicalDirectory(appHost.GetPhysicalPath());
1385
if (configFile == null || !
FileUtil
.FileExists(configFile)) {
1389
String appDir =
FileUtil
.RemoveTrailingDirectoryBackSlash(physicalPath);
1453
binDir =
FileUtil
.RemoveTrailingDirectoryBackSlash(binDir);
Hosting\HostingEnvironment.cs (1)
64
_precompTargetPhysicalDir =
FileUtil
.FixUpPhysicalDirectory(value);
Hosting\MapPathBasedVirtualPathProvider.cs (3)
107
string existingDir = (exists) ? physicalPath :
FileUtil
.GetFirstExistingDirectory(AppRoot, physicalPath);
124
appRoot =
FileUtil
.RemoveTrailingDirectoryBackSlash(appRoot);
302
if (
FileUtil
.DirectoryExists(subPhysicalPath)) {
Hosting\SimpleApplicationHost.cs (1)
34
if (
FileUtil
.IsSuspiciousPhysicalPath(physicalPath)) {
HttpApplicationFactory.cs (1)
228
if (
FileUtil
.FileExists(_appFilename)) {
HttpRuntime.cs (5)
723
if (!
FileUtil
.DirectoryAccessible(_appDomainAppPath)) {
3151
if (file == null || !
FileUtil
.FileExists(file)) {
3249
appDir =
FileUtil
.RemoveTrailingDirectoryBackSlash(appDir);
3250
binDir =
FileUtil
.RemoveTrailingDirectoryBackSlash(binDir);
3547
if (
FileUtil
.IsSuspiciousPhysicalPath(originalResult, out pathTooLong) || pathTooLong)
Security\AuthStoreRoleProvider.cs (1)
567
if (!
FileUtil
.FileExists(fileName)) {
Security\FileAuthorizationModule.cs (3)
338
_FileName =
FileUtil
.RemoveTrailingDirectoryBackSlash(strFile);
448
string existingDir =
FileUtil
.GetFirstExistingDirectory(AppRoot, _FileName);
469
appRoot =
FileUtil
.RemoveTrailingDirectoryBackSlash(appRoot);
StaticFileHandler.cs (1)
82
if (!
FileUtil
.FileExists(physicalPath)) {
UI\Page.cs (1)
1350
if (!String.IsNullOrEmpty(value) && !
FileUtil
.IsValidDirectoryName(value)) {
UI\Util.cs (2)
203
if (
FileUtil
.DirectoryExists(filename)) {
482
if (!
FileUtil
.IsValidDirectoryName(themeName)) {
Util\FileUtil.cs (3)
94
if (
FileUtil
.DirectoryExists(nextDir, false)) {
438
path =
FileUtil
.RemoveTrailingDirectoryBackSlash(path);
487
rootDirectoryPath =
FileUtil
.RemoveTrailingDirectoryBackSlash(rootDirectoryPath);
Util\HashCodeCombiner.cs (2)
153
if (!
FileUtil
.FileExists(fileName)) {
156
if (
FileUtil
.DirectoryExists(fileName)) {