fileDirectory property

String? get fileDirectory

Gets the directory path from this file path

Returns the directory path or null if path is invalid

Example:

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

Implementation

String? get fileDirectory => QFileInfoUtils.getDirectory(this);