Nyall Dawson 762b2a423b [FEATURE] Expression functions which return file info
base_file_name: Returns the base name of the file without the directory or file suffix.
file_exists: Returns true if a file exists
file_name: Returns the file name from a full path
file_path: Returns the directory/path from a full file path
file_size: Returns a file size
file_suffix: Returns a files suffix/extension
is_directory: Returns true if a file path is a directory
is_file: Returns true if a file path is a file
2019-04-27 17:24:37 +10:00

10 lines
345 B
Plaintext

{
"name": "is_file",
"type": "function",
"description": "Returns true if a path corresponds to a file.",
"arguments": [ {"arg":"path","description":"a file path"}],
"examples": [ { "expression":"is_file('/home/qgis/data/country_boundaries.shp')", "returns":"true"},
{ "expression":"is_file('/home/qgis/data/')", "returns":"false"}]
}