Workspace 6.21.5
FileInfo

See https://doc.qt.io/qt-5/qfileinfo.html

  • Default label: "File info"
  • Member of plug-in: Built-in
  • Catalogue path: Builtin/System
Inputs:
PathQStringPath of an existing file or directory.
Native separatorsbool

Use native separators in the output.

Outputs:
Canonical pathQStringReturns the file's path canonical path (excluding the file name), i.e. an absolute path without symbolic links or redundant "." or ".." elements.
Canonical file pathQStringReturns the canonical path including the file name, i.e. an absolute path without symbolic links or redundant "." or ".." elements.
Base file pathQStringReturns 'Canonical file path' without suffix
Base nameQStringReturns the base name of the file without the path.
Complete base nameQStringReturns the complete base name of the file without the path.
SuffixQStringReturns the suffix (extension) of the file.
Complete suffixQStringReturns the complete suffix (extension) of the file.
ExistsboolReturns the complete suffix (extension) of the file.
Last modifiedQDateTimeReturns the date and local time when the file was last modified.
Sizeint

Returns the file size in bytes. If the file does not exist or cannot be fetched, 0 is returned.