Skip to content

Extract file name

ts
function ExtractName(fullyQualifiedFileName: string): string;

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

Example

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