190 references to Directory
ComSvcConfig (7)
ComplusEndpointConfigContainer.cs (5)
48if (!Directory.Exists(this.appDir)) 58if (!Directory.Exists(this.appDir)) 85if (Directory.Exists(this.appDir)) 87Directory.Delete(this.appDir); 287Directory.CreateDirectory(this.appDir);
SvcFileManager.cs (1)
37string[] fileNames = Directory.GetFiles(webDirectoryPath, "*.svc");
WasEndpointConfigContainer.cs (1)
39if (string.IsNullOrEmpty(webDirectoryPath) || !Directory.Exists(webDirectoryPath))
mscorlib (57)
system\deployment\cmsutils.cs (1)
93directoryName = Directory.UnsafeGetCurrentDirectory();
system\environment.cs (2)
388return Directory.GetCurrentDirectory(); 397Directory.SetCurrentDirectory(value);
system\io\directory.cs (3)
463using (SafeFileHandle handle = Directory.OpenHandle(path)) { 500using (SafeFileHandle handle = Directory.OpenHandle(path)) { 537using (SafeFileHandle handle = Directory.OpenHandle(path)) {
system\io\directoryinfo.cs (17)
100string fullPath = Directory.GetFullPathAndCheckPermissions(path, checkHost: checkHost); 134Directory.CheckPermissions(string.Empty, FullPath, checkHost: false); 159Directory.CheckPermissions(string.Empty, FullPath, checkHost: true, access: FileSecurityStateAccess.PathDiscovery); 169Directory.CheckPermissions(string.Empty, FullPath, checkHost: false, access: FileSecurityStateAccess.PathDiscovery); 192Directory.CheckPermissions(string.Empty, dir.FullPath, checkHost: true, access: FileSecurityStateAccess.PathDiscovery | FileSecurityStateAccess.Read); 250String demandDirForCreation = Directory.GetDemandDir(fullPath, true); 258Directory.InternalCreateDirectory(fullPath, path, directorySecurity); 268Directory.InternalCreateDirectory(FullPath, OriginalPath, null, true); 276Directory.InternalCreateDirectory(FullPath, OriginalPath, directorySecurity, true); 310return Directory.GetAccessControl(FullPath, AccessControlSections.Access | AccessControlSections.Owner | AccessControlSections.Group); 317return Directory.GetAccessControl(FullPath, includeSections); 324Directory.SetAccessControl(FullPath, directorySecurity); 624demandPath = Directory.GetDemandDir(rootPath, true); 647Directory.CheckPermissions(DisplayPath, FullPath, checkHost: true, access: FileSecurityStateAccess.Write | FileSecurityStateAccess.Read); 660Directory.CheckPermissions(destDirName, fullDestDirName, checkHost: true, access: FileSecurityStateAccess.Write | FileSecurityStateAccess.Read); 704Directory.Delete(FullPath, OriginalPath, false, true); 712Directory.Delete(FullPath, OriginalPath, recursive, true);
system\io\driveinfo.cs (2)
144return Directory.InternalExists(Name); 212String[] drives = Directory.GetLogicalDrives();
system\io\file.cs (2)
184if (Directory.InternalExists(fullDestFileName)) 1469if (hr==__Error.ERROR_PATH_NOT_FOUND && FullPath.Equals(Directory.GetDirectoryRoot(FullPath)))
system\io\filestream.cs (1)
857if (errorCode==__Error.ERROR_PATH_NOT_FOUND && filePath.Equals(Directory.InternalGetDirectoryRoot(filePath)))
system\io\filesystemenumerable.cs (21)
170private List<Directory.SearchData> searchStack; 171private Directory.SearchData searchData; 203searchStack = new List<Directory.SearchData>(); 233demandPaths[0] = Directory.GetDemandDir(fullPath, true); 237demandPaths[1] = Directory.GetDemandDir(normalizedSearchPath, true); 255searchData = new Directory.SearchData(normalizedSearchPath, this.userPath, searchOption); 325searchStack = new List<Directory.SearchData>(); 342demandPaths[0] = Directory.GetDemandDir(fullPath, true); 346demandPaths[1] = Directory.GetDemandDir(normalizedSearchPath, true); 350searchData = new Directory.SearchData(normalizedSearchPath, userPath, searchOption); 523private void AddSearchableDirsToStack(Directory.SearchData localSearchData) 566Directory.SearchData searchDataSubDir = new Directory.SearchData(tempFullPath, tempUserPath, option); 590String demandDir = Directory.GetDemandDir(fullPathToDemand, true); 657internal abstract TSource CreateObject(Directory.SearchData searchData, ref Win32Native.WIN32_FIND_DATA findData); 676internal override string CreateObject(Directory.SearchData searchData, ref Win32Native.WIN32_FIND_DATA findData) 686internal override FileInfo CreateObject(Directory.SearchData searchData, ref Win32Native.WIN32_FIND_DATA findData) 692internal static FileInfo CreateFileInfo(Directory.SearchData searchData, ref Win32Native.WIN32_FIND_DATA findData) 715internal override DirectoryInfo CreateObject(Directory.SearchData searchData, ref Win32Native.WIN32_FIND_DATA findData) 721internal static DirectoryInfo CreateDirectoryInfo(Directory.SearchData searchData, ref Win32Native.WIN32_FIND_DATA findData) 744internal override FileSystemInfo CreateObject(Directory.SearchData searchData, ref Win32Native.WIN32_FIND_DATA findData)
system\io\filesysteminfo.cs (3)
190Directory.SetCreationTimeUtc(FullPath,value); 233Directory.SetLastAccessTimeUtc(FullPath,value); 276Directory.SetLastWriteTimeUtc(FullPath,value);
system\io\isolatedstorage\isolatedstoragefile.cs (3)
1378if (!Directory.Exists(RootDirectory)) { 2881m_SubDir = Directory.GetDirectories(m_RootDir[m_nRootDir]); 2937m_RootDir = Directory.GetDirectories(m_Root);
system\io\longpath.cs (1)
947return Directory.InternalExists(tempPath, out lastError);
system\reflection\emit\assemblybuilder.cs (1)
1836else if (Directory.Exists(m_assemblyData.m_strDir) == false)
PresentationBuildTasks (21)
BuildTasks\Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (3)
83_sourceDir = Directory.GetCurrentDirectory() + "\\"; 158if (!Directory.Exists(OutputPath)) 160Directory.CreateDirectory(OutputPath);
BuildTasks\Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (3)
65_sourceDir = Directory.GetCurrentDirectory() + "\\"; 124if (!Directory.Exists(OutputPath)) 126Directory.CreateDirectory(OutputPath);
BuildTasks\Microsoft\Build\Tasks\Windows\MergeLocalizationDirectives.cs (1)
64Directory.GetCurrentDirectory(),
BuildTasks\Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (3)
144SourceDir = Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar; 183if (!Directory.Exists(OutputPath)) 185Directory.CreateDirectory(OutputPath);
BuildTasks\Microsoft\Build\Tasks\Windows\UidManager.cs (4)
65_backupPath = Directory.GetCurrentDirectory(); 172string sourceDir = Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar; 401if (!Directory.Exists(_backupPath)) 403Directory.CreateDirectory(_backupPath);
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (4)
487if (targetPath.Length > 0 && !Directory.Exists(targetPath)) 489Directory.CreateDirectory(targetPath); 2586Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar, 3234relPath = TaskHelper.GetRootRelativePath(Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar, fullFilePath);
BuildTasks\MS\Internal\Tasks\CompilerWrapper.cs (1)
48_sourceDir = Directory.GetCurrentDirectory() + "\\";
BuildTasks\MS\Internal\Tasks\IncrementalCompileAnalyzer.cs (1)
486string curDir = Directory.GetCurrentDirectory() + "\\";
BuildTasks\MS\Internal\Tasks\TaskHelper.cs (1)
123string sourceDir = Directory.GetCurrentDirectory() + "\\";
PresentationCore (6)
Core\CSharp\MS\Internal\FontCache\DWriteFactory.cs (1)
91localPath = Directory.GetParent(fontCollectionUri.LocalPath).FullName + Path.DirectorySeparatorChar;
Core\CSharp\MS\Internal\FontCache\FontSource.cs (1)
198return Directory.GetLastWriteTimeUtc(_fontUri.LocalPath);
Core\CSharp\MS\Internal\FontCache\FontSourceCollection.cs (4)
190files = Directory.GetFiles(_uri.LocalPath, "*" + Util.CompositeFontExtension); 219foreach (string file in Directory.GetFiles(_uri.LocalPath)) 237files = Directory.GetFiles(_uri.LocalPath, "*" + Util.CompositeFontExtension); 242files = Directory.GetFiles(_uri.LocalPath);
PresentationFramework (1)
src\Framework\System\Windows\Documents\Speller.cs (1)
1641fileUri = new Uri(new Uri(Directory.GetCurrentDirectory() + "/"), uri);
System (9)
compmod\system\codedom\compiler\RedistVersionInfo.cs (2)
106if (Directory.Exists(dir)) 114if (dir != null && Directory.Exists(dir)) {
compmod\system\codedom\compiler\TempFiles.cs (3)
274if (currentIdentity != null && Directory.Exists(highIntegrityDirectory)) 278if (Directory.GetFiles(highIntegrityDirectory).Length == 0) 281Directory.Delete(highIntegrityDirectory, true);
net\System\Net\mail\iisPickupDirectory.cs (1)
441if (Directory.Exists(pickupDirectory))
services\io\system\io\FileSystemWatcher.cs (2)
144if (path.Length == 0 || !Directory.Exists(path)) 311if (!Directory.Exists(value))
sys\system\configuration\LocalFileSettingsProvider.cs (1)
332DirectoryInfo parentDir = Directory.GetParent(userConfigPath);
System.AddIn (17)
System\Addin\Hosting\AddInStore.cs (17)
246if (Directory.Exists(addInsPath)) 307if (Directory.Exists(addInPath)) { 308foreach (String dir in Directory.GetDirectories(addInPath)) { 330if (storeTime < Directory.GetLastWriteTime(path)) 334if (storeTime < Directory.GetLastWriteTime(file)) 347result.AddRange(Directory.GetFiles(path, "*.dll")); 348result.AddRange(Directory.GetFiles(path, "*.exe")); 671if (!Directory.Exists(fullPath)) 694if (!Directory.Exists(fullPath)) 712if (!Directory.Exists(folder)) 843foreach (String file in Directory.GetFiles(hostAdapterDir)) { 852foreach (String file in Directory.GetFiles(contractDir)) { 861foreach (String file in Directory.GetFiles(addInAdapterDir)) { 871foreach (String file in Directory.GetFiles(addInBaseDir)) { 914foreach (String singleAddinDir in Directory.GetDirectories(rootDir)) { 926foreach (String file in Directory.GetFiles(singleAddinDir)) { 953String[] files = Directory.GetFiles(rootDir);
System.Configuration (2)
System\Configuration\Internal\InternalConfigHost.cs (2)
199if (!Directory.Exists(dir)) { 211Directory.CreateDirectory(dir);
System.Data (2)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\VisualStudio\Activities\WorkflowDesignerExtensionManager.cs (2)
136if (Directory.Exists(this.ExtensionsDirectory)) 148if (Directory.Exists(this.ExtensionsDirectory))
System.Data.Entity (2)
System\Data\Metadata\MetadataArtifactLoader.cs (1)
100if (Directory.Exists(normalizedPath))
System\Data\Metadata\MetadataArtifactLoaderCompositeFile.cs (1)
265string[] fileNames = Directory.GetFiles(
System.Management (1)
Instrumentation\SchemaRegistration.cs (1)
412 Directory.CreateDirectory(DataDirectory);
System.ServiceModel (6)
System\ServiceModel\ComIntegration\ComIntegrationManifestGenerator.cs (2)
23if (!String.IsNullOrEmpty(path) && !Directory.Exists(path)) 81if (!String.IsNullOrEmpty(path) && !Directory.Exists(path))
System\ServiceModel\ComIntegration\ComPlusInstanceContextInitializer.cs (4)
56if (Directory.Exists(manifestDirectory)) 57Directory.Delete(manifestDirectory, true); 171if (!Directory.Exists(manifestDirectory)) 175Directory.CreateDirectory(manifestDirectory);
System.ServiceModel.Activation (1)
System\ServiceModel\Activities\Activation\WorkflowServiceHostFactory.cs (1)
268string[] files = Directory.GetFiles(xamlFileFolder, "*.xamlx");
System.Web (40)
Compilation\AssemblyBuilder.cs (4)
373Directory.CreateDirectory(resourceDir); 685Directory.CreateDirectory(dir); 1260if (Directory.Exists(generatedFilesDir)) { 1276Directory.CreateDirectory(generatedFilesDir);
Compilation\BrowserCapabilitiesCompiler.cs (1)
117if (directory != null && Directory.Exists(physicalDir)) {
Compilation\BuildManager.cs (9)
2505Directory.Delete(fileData.FullName, true /*recursive*/); 2623Directory.CreateDirectory(_precompTargetPhysicalDir); 2771Directory.CreateDirectory(physicalDir); 2869if (Directory.Exists(appPhysicalDir)) { 2870string[] themeDirs = Directory.GetDirectories(appPhysicalDir); 2929Directory.CreateDirectory(destPhysicalDir); 2949Directory.CreateDirectory(toDir); 3356if (!Directory.Exists(userCachePath)) { 3357Directory.CreateDirectory(userCachePath);
Compilation\BuildResultCache.cs (6)
415Directory.CreateDirectory(_cacheDir); 755Directory.CreateDirectory(hashDirPath); 774string[] subDirs = Directory.GetDirectories(_cacheDir); 882if (Directory.Exists(path)){ 884Directory.Delete(path, recursive:true); 952Directory.Delete(fileData.FullName, true /*recursive*/);
Compilation\CodeDirectoryCompiler.cs (2)
58if (Directory.Exists(physicalDir)) { 122if (!Directory.Exists(physicalDir)) {
DataAccess\SqlConnectionHelper.cs (2)
205if (!Directory.Exists(dataDir)) { 207Directory.CreateDirectory(dataDir);
FileChangesMonitor.cs (2)
1979if (!Directory.Exists(dir)) 2009else if (Directory.Exists(dirRootSubDir)) {
Hosting\ApplicationManager.cs (1)
1425Directory.CreateDirectory(tempDirectory);
Hosting\ISAPIApplicationHost.cs (1)
83if (!Directory.Exists(_physicalPath)) {
Hosting\MapPathBasedVirtualPathProvider.cs (1)
95bool exists = (isFile) ? File.Exists(physicalPath) : Directory.Exists(physicalPath);
HttpInputStream.cs (2)
225if (!Directory.Exists(tempDir)) { 227Directory.CreateDirectory(tempDir);
HttpRuntime.cs (3)
949Directory.CreateDirectory(tempDirectory); 995Directory.CreateDirectory(_codegenDir); 1030string parentDir = Directory.GetParent(_codegenDir).FullName;
Management\regiisutil.cs (2)
270if (!Directory.Exists(dirName)) 363if (!System.IO.Directory.Exists(System.IO.Path.GetDirectoryName(fileName)))
UI\Util.cs (3)
237if (!Directory.Exists(dir)) 242string[] entries = Directory.GetFileSystemEntries(dir); 294if (!Directory.Exists(dir))
Util\FileUtil.cs (1)
301exists = Directory.Exists(dirname);
System.Web.DataVisualization (4)
WebForm\General\ChartHttpHandler.cs (4)
217if (!Directory.Exists(Settings.Directory + _controllerDirectory)) 219Directory.CreateDirectory(Settings.Directory + _controllerDirectory); 223TimeSpan lastWrite = DateTime.Now - Directory.GetLastWriteTime(Settings.Directory + _controllerDirectory); 1231if (!System.IO.Directory.Exists(fileDirectory))
System.Web.Services (1)
System\Web\Services\Discovery\DynamicPhysicalDiscoSearcher.cs (1)
59if ( !Directory.Exists(dir) )
System.Windows.Forms (3)
winforms\Managed\System\WinForms\Application.cs (3)
29using Directory = System.IO.Directory; 1267if (!Directory.Exists(path)) { 1268Directory.CreateDirectory(path);
System.Workflow.ComponentModel (8)
AuthoringOM\Compiler\XomlCompiler.cs (5)
519DirectoryInfo info = Directory.CreateDirectory(createdDirectoryName); 578Directory.Delete(createdDirectoryName, true); 796Directory.Delete(createdDirectoryName, true); 891if (Directory.Exists(tempAssemblyDirectory)) 895Directory.CreateDirectory(tempAssemblyDirectory);
AuthoringOM\Compiler\XomlCompilerHelpers.cs (1)
536return Directory.Exists(fullPathName);
AuthoringOM\Design\Themes.cs (2)
508if (directory.Length > 0 && !Directory.Exists(directory)) 509Directory.CreateDirectory(directory);
System.Xml (2)
System\Xml\Serialization\Compiler.cs (2)
129if (!Directory.Exists(baseDir)) { 136if (!Directory.Exists(baseDir)) {