Fix expression function examples

This commit is contained in:
Nyall Dawson 2019-04-28 15:47:35 +10:00
parent 5fa9e2f02e
commit 5a088bfa2b
3 changed files with 3 additions and 3 deletions

View File

@ -3,6 +3,6 @@
"type": "function",
"description": "Returns the name of a file (including the file extension), excluding the directory.",
"arguments": [ {"arg":"path","description":"a file path"}],
"examples": [ { "expression":"base_file_name('/home/qgis/data/country_boundaries.shp')", "returns":"'country_boundaries.shp'"}]
"examples": [ { "expression":"file_name('/home/qgis/data/country_boundaries.shp')", "returns":"'country_boundaries.shp'"}]
}

View File

@ -3,6 +3,6 @@
"type": "function",
"description": "Returns the directory component of a file path. This does not include the file name.",
"arguments": [ {"arg":"path","description":"a file path"}],
"examples": [ { "expression":"base_file_name('/home/qgis/data/country_boundaries.shp')", "returns":"'/home/qgis/data'"}]
"examples": [ { "expression":"file_path('/home/qgis/data/country_boundaries.shp')", "returns":"'/home/qgis/data'"}]
}

View File

@ -3,6 +3,6 @@
"type": "function",
"description": "Returns the file suffix (extension) from a file path.",
"arguments": [ {"arg":"path","description":"a file path"}],
"examples": [ { "expression":"base_file_name('/home/qgis/data/country_boundaries.shp')", "returns":"'shp'"}]
"examples": [ { "expression":"file_suffix('/home/qgis/data/country_boundaries.shp')", "returns":"'shp'"}]
}