Top Method Summary
Options Name Purpose
CHARACTER BuildFullPath (character, character) Combines a root folder path and an optional relative sub-folder using "/" as the separator.
Consultingwerk.Windows.Framework.FilePicker.FilePickerSelectionModeEnum ParseSelectionMode (character) Parses the string form of the FilePickerSelectionMode attribute into the corresponding enum value.
CHARACTER PrependSegment (character, character) Prepends a folder segment to an existing relative path.
CHARACTER ShortFolderName (character) Returns the short (last segment) folder name of a full path so that server-side full paths are not exposed to the client.

Top Constructor Summary
Options Name Purpose
FilePickerPathHelper () Private constructor to prevent instantiation


Method Detail
Top

CHARACTER BuildFullPath (character, character)

Purpose: Combines a root folder path and an optional relative sub-folder
using "/" as the separator.
Notes: A trailing "/" on the root and a leading "/" on the sub-folder
are tolerated and do not produce duplicates.

Parameters:
pcRootPath CHARACTER
The root folder path
pcSubFolder CHARACTER
The optional relative sub-folder (may be empty / unknown)
Returns CHARACTER
The combined path, or just pcRootPath if pcSubFolder is empty
Top

Consultingwerk.Windows.Framework.FilePicker.FilePickerSelectionModeEnum ParseSelectionMode (character)

Purpose: Parses the string form of the FilePickerSelectionMode attribute
into the corresponding enum value.
Notes: Anything other than the case-insensitive literal "folder"
(including empty, unknown and arbitrary strings) maps to File.

Parameters:
pcMode CHARACTER
The attribute value
Returns Consultingwerk.Windows.Framework.FilePicker.FilePickerSelectionModeEnum
The selection mode
Top

CHARACTER PrependSegment (character, character)

Purpose: Prepends a folder segment to an existing relative path.
Notes: Used when walking up a tree node ancestry to build the
relative sub-folder string segment by segment.

Parameters:
pcSegment CHARACTER
The folder segment to prepend
pcExistingPath CHARACTER
The relative path collected so far (may be empty)
Returns CHARACTER
The new relative path
Top

CHARACTER ShortFolderName (character)

Purpose: Returns the short (last segment) folder name of a full path so
that server-side full paths are not exposed to the client.
Notes: Handles both "/" and "\" separators and tolerates trailing
separators. Returns an empty string for an empty / unknown path.

Parameters:
pcPath CHARACTER
The full folder path
Returns CHARACTER
The last path segment (folder name)


Constructor Detail
Top

FilePickerPathHelper ()

Purpose: Private constructor to prevent instantiation
Notes:



©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       01.06.2026 09:20:34