{ "name": "file_path", "type": "function", "groups": ["Files and Paths"], "description": "Returns the directory component of a file path. This does not include the file name.", "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_path('/home/qgis/data/country_boundaries.shp')", "returns": "'/home/qgis/data'" }], "tags": ["path", "directory", "name", "folder", "file"] }