IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Static methods for manipulating project paths, including both directories and files. Some synonyms for System.Path methods are included as well. More...
Static Public Member Functions | |
static bool | IsAssemblyFileType (string path) |
Returns a boolean indicating whether the specified path is that of an assembly - that is a dll or exe file. More... | |
static string | RelativePath (string from, string to) |
Returns the relative path from a base directory to another directory or file. More... | |
static string | Canonicalize (string path) |
Return the canonical form of a path. More... | |
static bool | SamePathOrUnder (string path1, string path2) |
True if the two paths are the same or if the second is directly or indirectly under the first. Note that paths using different network shares or drive letters are considered unrelated, even if they end up referencing the same subtrees in the file system. More... | |
static string | Combine (string path1, params string[] morePaths) |
Combines all the arguments into a single path More... | |
Public Attributes | |
const uint | FILE_ATTRIBUTE_DIRECTORY = 0x00000010 |
const uint | FILE_ATTRIBUTE_NORMAL = 0x00000080 |
const int | MAX_PATH = 256 |
Static Protected Attributes | |
static char | DirectorySeparatorChar = Path.DirectorySeparatorChar |
static char | AltDirectorySeparatorChar = Path.AltDirectorySeparatorChar |
Static Private Member Functions | |
static bool | IsWindows () |
static string[] | SplitPath (string path) |
static bool | PathsEqual (string path1, string path2) |
Static methods for manipulating project paths, including both directories and files. Some synonyms for System.Path methods are included as well.
|
inlinestatic |
Returns a boolean indicating whether the specified path is that of an assembly - that is a dll or exe file.
path | Path to a file. |
Referenced by NUnit.Engine.Services.DefaultTestRunnerFactory.MakeTestRunner(), and NUnit.Engine.Services.RuntimeFrameworkService.SelectRuntimeFramework().
|
inlinestatic |
Returns the relative path from a base directory to another directory or file.
References NUnit.Engine.Internal.PathUtils.DirectorySeparatorChar.
Referenced by NUnit.Engine.Services.DomainManager.GetPrivateBinPath(), NUnit.Engine.Internal.Tests.PathUtilTests_Windows.RelativePath(), and NUnit.Engine.Internal.Tests.PathUtilTests_Unix.RelativePath().
|
inlinestatic |
Return the canonical form of a path.
Referenced by NUnit.Engine.Internal.Tests.PathUtilTests_Windows.Canonicalize(), and NUnit.Engine.Internal.Tests.PathUtilTests_Unix.Canonicalize().
|
inlinestatic |
True if the two paths are the same or if the second is directly or indirectly under the first. Note that paths using different network shares or drive letters are considered unrelated, even if they end up referencing the same subtrees in the file system.
Referenced by NUnit.Engine.Services.DomainManager.GetCommonAppBase().
|
inlinestatic |
Combines all the arguments into a single path
|
inlinestaticprivate |
References NUnit.Engine.Internal.PathUtils.DirectorySeparatorChar.
Referenced by NUnit.Engine.Internal.PathUtils.PathsEqual().
|
inlinestaticprivate |
|
inlinestaticprivate |
References NUnit.Engine.Internal.PathUtils.IsWindows().
const uint NUnit.Engine.Internal.PathUtils.FILE_ATTRIBUTE_DIRECTORY = 0x00000010 |
const uint NUnit.Engine.Internal.PathUtils.FILE_ATTRIBUTE_NORMAL = 0x00000080 |
const int NUnit.Engine.Internal.PathUtils.MAX_PATH = 256 |
|
staticprotected |
Referenced by NUnit.Engine.Internal.Tests.PathUtilTests.CheckDefaults(), NUnit.Engine.Internal.PathUtils.IsWindows(), NUnit.Engine.Internal.PathUtils.RelativePath(), NUnit.Engine.Internal.Tests.PathUtilTests_Windows.RestoreDefaultSeparators(), NUnit.Engine.Internal.Tests.PathUtilTests_Unix.RestoreDefaultSeparators(), NUnit.Engine.Internal.Tests.PathUtilTests_Windows.SetUpUnixSeparators(), NUnit.Engine.Internal.Tests.PathUtilTests_Unix.SetUpUnixSeparators(), and NUnit.Engine.Internal.PathUtils.SplitPath().
|
staticprotected |
Referenced by NUnit.Engine.Internal.Tests.PathUtilTests.CheckDefaults(), NUnit.Engine.Internal.Tests.PathUtilTests_Windows.RestoreDefaultSeparators(), NUnit.Engine.Internal.Tests.PathUtilTests_Unix.RestoreDefaultSeparators(), NUnit.Engine.Internal.Tests.PathUtilTests_Windows.SetUpUnixSeparators(), NUnit.Engine.Internal.Tests.PathUtilTests_Unix.SetUpUnixSeparators(), and NUnit.Engine.Internal.PathUtils.SplitPath().