2019-04-27 10:03:55 +10:00
|
|
|
{
|
|
|
|
"name": "file_exists",
|
|
|
|
"type": "function",
|
2020-07-02 01:46:48 +01:00
|
|
|
"groups": ["Files and Paths"],
|
2019-04-27 10:03:55 +10:00
|
|
|
"description": "Returns true if a file path exists.",
|
2022-01-07 08:33:29 -05:00
|
|
|
"arguments": [{
|
|
|
|
"arg": "path",
|
2022-02-07 11:41:29 +10:00
|
|
|
"description": "a file path or a map layer value. If a map layer layer value is specified then the file source of the layer will be used."
|
2022-01-07 08:33:29 -05:00
|
|
|
}],
|
|
|
|
"examples": [{
|
|
|
|
"expression": "file_exists('/home/qgis/data/country_boundaries.shp')",
|
|
|
|
"returns": "true"
|
|
|
|
}],
|
|
|
|
"tags": ["path", "exists", "file"]
|
2019-04-27 10:03:55 +10:00
|
|
|
}
|