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