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