2019-04-27 10:03:55 +10:00
|
|
|
{
|
|
|
|
"name": "is_directory",
|
|
|
|
"type": "function",
|
2020-07-02 01:46:48 +01:00
|
|
|
"groups": ["Files and Paths"],
|
2022-03-18 10:20:28 +01:00
|
|
|
"description": "Returns TRUE if a path corresponds to a directory.",
|
2022-01-07 08:33:29 -05:00
|
|
|
"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."
|
2022-01-07 08:33:29 -05:00
|
|
|
}],
|
|
|
|
"examples": [{
|
|
|
|
"expression": "is_directory('/home/qgis/data/country_boundaries.shp')",
|
2022-03-21 09:20:52 +01:00
|
|
|
"returns": "FALSE"
|
2022-01-07 08:33:29 -05:00
|
|
|
}, {
|
|
|
|
"expression": "is_directory('/home/qgis/data/')",
|
2022-04-01 07:33:36 +02:00
|
|
|
"returns": "TRUE"
|
2022-01-07 08:33:29 -05:00
|
|
|
}],
|
2022-01-11 11:17:49 -05:00
|
|
|
"tags": ["path", "directory", "folder"]
|
2019-04-27 10:03:55 +10:00
|
|
|
}
|