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)
Syntax
public static string GetVerifiedSubdirectory(
	string baseDirectory,
	string 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: String
The canonicalized full path of the folder, ending with a directory separator.
See Also