GuardIsExistingDirectory Method |
[This is preliminary documentation and is subject to change.]
Checks if folder exists on disk
Namespace:
CSInfrastructure.CodeContracts
Assembly:
CSInfrastructure (in CSInfrastructure.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax public static string IsExistingDirectory(
string folder,
string paramName
)
Parameters
- folder
- Type: SystemString
The folder path to check - paramName
- Type: SystemString
The name of the parameter being checked
Return Value
Type:
StringThe folder path being checked
Exceptions Exception | Condition |
---|
DirectoryNotFoundException | Thrown when the path provided in folder does not exist |
See Also