isDocumentFile property

bool get isDocumentFile

Checks if this file path represents a document

Returns true if the file is likely a document based on extension

Example:

print('/path/to/document.pdf'.isDocumentFile); // true

Implementation

bool get isDocumentFile => QFileInfoUtils.isDocument(this);