Skip to content
Permalink
Browse files

Fix expression function examples

  • Loading branch information
nyalldawson committed Apr 28, 2019
1 parent 5fa9e2f commit 5a088bfa2b740d53b5f4cce5c77ba6675e47bd82
@@ -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'"}]
}

@@ -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'"}]
}

@@ -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'"}]
}

0 comments on commit 5a088bf

Please sign in to comment.
You can’t perform that action at this time.