mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
16 lines
565 B
Plaintext
16 lines
565 B
Plaintext
{
|
|
"name": "file_name",
|
|
"type": "function",
|
|
"groups": ["Files and Paths"],
|
|
"description": "Returns the name of a file (including the file extension), excluding the directory.",
|
|
"arguments": [{
|
|
"arg": "path",
|
|
"description": "a file path or a map layer value. If a map layer value is specified then the file source of the layer will be used."
|
|
}],
|
|
"examples": [{
|
|
"expression": "file_name('/home/qgis/data/country_boundaries.shp')",
|
|
"returns": "'country_boundaries.shp'"
|
|
}],
|
|
"tags": ["extension", "name", "directory", "file", "path"]
|
|
}
|