Extract file path

function ExtractPath(fullyQualifiedFileName: string): string

This function takes a fully qualified path name (root-based path including all directories and the file name) and returns the path portion only.

Example:

{
  res = ExtractPath('/docs/sheets/budget.xlsx');
  // res will be "/docs/sheets"
}