 | CommonGetVerifiedSubdirectory Method |
Resolves a single child folder (e.g. a dealer ID) directly under the supplied trusted
directory. Throws when the folder name is missing, contains path separators, invalid
characters, or is a relative segment ("." / ".."), or when the result escapes the base.
Namespace:
IAS
Assembly:
Common (in Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static string GetVerifiedSubdirectory(
string baseDirectory,
string folderName
)
Public Shared Function GetVerifiedSubdirectory (
baseDirectory As String,
folderName As String
) As String
public static function GetVerifiedSubdirectory(
baseDirectory : String,
folderName : String
) : String
IAS.Common.GetVerifiedSubdirectory = function(baseDirectory, folderName);
Parameters
- baseDirectory
- Type: SystemString
The trusted root directory the folder must reside in. - folderName
- Type: SystemString
The single folder name to append.
Return Value
Type:
StringThe canonicalized full path of the folder, ending with a directory separator.
See Also