fileBaseName property

String? get fileBaseName

Gets the file name without extension from this path

Returns the base filename or null if path is invalid

Example:

print('/path/to/document.pdf'.fileBaseName); // "document"

Implementation

String? get fileBaseName => QFileInfoUtils.getBaseName(this);