Skip to main content
Roberty Studio
RPAUtils

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​

File full 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 File full 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.