QPathExtensions extension
String extensions for file paths
Provides convenient extension methods on String paths for getting file information without creating File objects.
- on
Properties
- fileBaseName → String?
-
Available on String, provided by the QPathExtensions extension
Gets the file name without extension from this pathno setter - fileCategory → String?
-
Available on String, provided by the QPathExtensions extension
Gets the file categoryno setter - fileDirectory → String?
-
Available on String, provided by the QPathExtensions extension
Gets the directory path from this file pathno setter - fileExists → bool
-
Available on String, provided by the QPathExtensions extension
Checks if the file existsno setter - fileExtension → String?
-
Available on String, provided by the QPathExtensions extension
Gets the file extension from this path (without dot)no setter - fileExtensionWithDot → String?
-
Available on String, provided by the QPathExtensions extension
Gets the file extension with dotno setter - fileHumanSize → String?
-
Available on String, provided by the QPathExtensions extension
Gets human-readable file sizeno setter - fileMimeType → String?
-
Available on String, provided by the QPathExtensions extension
Gets the MIME type for this file path based on extensionno setter - fileName → String?
-
Available on String, provided by the QPathExtensions extension
Gets the file name from this path (including extension)no setter - fileSize → int?
-
Available on String, provided by the QPathExtensions extension
Gets file size in bytesno setter - isArchiveFile → bool
-
Available on String, provided by the QPathExtensions extension
Checks if this file path represents an archiveno setter - isAudioFile → bool
-
Available on String, provided by the QPathExtensions extension
Checks if this file path represents an audio fileno setter - isCodeFile → bool
-
Available on String, provided by the QPathExtensions extension
Checks if this file path represents a code fileno setter - isDocumentFile → bool
-
Available on String, provided by the QPathExtensions extension
Checks if this file path represents a documentno setter - isImageFile → bool
-
Available on String, provided by the QPathExtensions extension
Checks if this file path represents an imageno setter - isPresentationFile → bool
-
Available on String, provided by the QPathExtensions extension
Checks if this file path represents a presentationno setter - isSpreadsheetFile → bool
-
Available on String, provided by the QPathExtensions extension
Checks if this file path represents a spreadsheetno setter - isValidFilePath → bool
-
Available on String, provided by the QPathExtensions extension
Validates if this is a valid file pathno setter - isVideoFile → bool
-
Available on String, provided by the QPathExtensions extension
Checks if this file path represents a videono setter - sanitizedFileName → String
-
Available on String, provided by the QPathExtensions extension
Sanitizes this filenameno setter
Methods
-
sanitizeFilePath(
{String replacement = '_'}) → String -
Available on String, provided by the QPathExtensions extension
Creates a sanitized version of this file path -
toFile(
) → File -
Available on String, provided by the QPathExtensions extension
Converts this path to a File object