Project: QGIS

Version: 3.8

Feature: New expression functions

As always, a new QGIS release brings a bunch of new functions for use within QGIS' expression engine. These new functions add increased flexibility and power to the expression engine, and everywhere it's used throughout QGIS. This round, we've added a set of new functions which make it super-easy to operate on file names and paths.

New expression functions developed by Nyall Dawson of North Road:

  • 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

New expressions functions developed by Mathieu Pellerin of iMHere Asia:

  • array_all: Returns true if an array contains the all values of a given array.
  • concatenate_unique: Returns all unique strings from a field or expression joined by a delimiter.