mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
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
9 lines
346 B
Plaintext
9 lines
346 B
Plaintext
{
|
|
"name": "file_name",
|
|
"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'"}]
|
|
}
|
|
|