Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
565 B
Plaintext
Raw Normal View History

{
"name": "file_name",
"type": "function",
2020-07-02 01:46:48 +01:00
"groups": ["Files and Paths"],
"description": "Returns the name of a file (including the file extension), excluding the directory.",
"arguments": [{
"arg": "path",
2022-02-09 20:47:21 +01:00
"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"]
}