PATH:GET_*

This generator expression belongs to the Path Expressions family. See that section for related generator expressions.

Syntax

$<PATH:GET_*,...>

Added in version 3.24.

The following operations retrieve a different component or group of components from a path. See Path Structure And Terminology for the meaning of each path component.

Changed in version 3.27: All operations now accept a list of paths as argument. When a list of paths is specified, the operation will be applied to each path.

$<PATH:GET_ROOT_NAME,path...>
$<PATH:GET_ROOT_DIRECTORY,path...>
$<PATH:GET_ROOT_PATH,path...>
$<PATH:GET_FILENAME,path...>
$<PATH:GET_EXTENSION[,LAST_ONLY],path...>
$<PATH:GET_STEM[,LAST_ONLY],path...>
$<PATH:GET_RELATIVE_PART,path...>
$<PATH:GET_PARENT_PATH,path...>

If a requested component is not present in the path, an empty string is returned.