Skip to main content
Utils

Get file details

Get file details

Extracts structured information from a file path — such as name, extension, directory and root directory — with no manual text manipulation. The file does not have to exist for the analysis to run.


Options

Full file path

Enter the full path of the file the information will be extracted from. The file does not have to exist — the analysis runs only on the text of the given path.

Returns

Javascript code

js
actions["action-id"].root // root directory of the path (Text)
actions["action-id"].dir // directory that holds the file (Text)
actions["action-id"].base // full file name with extension (Text)
actions["action-id"].ext // file extension, including the dot (Text)
actions["action-id"].name // file name without the extension (Text)

Field selection

  • root — root directory of the path (Text)
  • dir — directory that holds the file (Text)
  • base — full file name with extension (Text)
  • ext — file extension, including the dot (Text)
  • name — file name without the extension (Text)

Rules and Conditions

  • The Path field is required.
  • The file does not have to exist — the analysis runs only on the text of the path.
  • The returned values follow the path separators of the operating system the robot runs on.