QFileInfo
QFileInfo is a lightweight, value-based class in the QtCore module of the Qt framework. It provides information about files and directories without opening them, encapsulating a filesystem path and exposing metadata such as existence, type, name components, size, timestamps, and permissions. QFileInfo can also resolve canonical or symlink targets where supported by the platform.
Construction and basic usage: QFileInfo can be created from a path string, from a QDir and a
Path and name queries: Methods such as filePath(), absoluteFilePath(), canonicalFilePath(), path() and fileName() provide the full
Status and metadata: Key capabilities include exists(), isDir(), isFile(), and isSymLink() to determine the object type.
Platform behavior and integration: QFileInfo delegates to the underlying operating system to retrieve metadata and is