1
Getters
Resolves and returns the general
FileType based on a hierarchical check of the fileβs extension and name.Checks if the file is likely a raster image based on its extension.Supports common formats:
jpg, jpeg, png, gif, bmp, webp.Checks if the file is likely an audio file.Supports common formats:
mp3, wav, aac, flac, m4a, ogg, wma.Checks if the file is likely a video file.Supports common formats:
mp4, mkv, mov, avi, webm, wmv.Checks if the file is a general-purpose document, covering text, office, and PDF formats.This is a broad check, combining the extensions from
isTextDocument, isSpreadsheet, and isPresentation.Checks if the file is a presentation file format.Supports common formats:
ppt, pptx, key, odp.Checks if the file is a spreadsheet file format.Supports common formats:
xls, xlsx, csv, ods and more.Checks if the file is a general text or readable document file (PDF, Word, Markdown, etc.).Supports common formats:
pdf, doc, docx, txt and more.Checks if the file is likely an executable or system binary file.Supports common formats:
exe, apk, aab, dmg, bat, sh, bin, iso, msi.Checks if the file is a source code, markup, or configuration file.Supports common formats:
dart, js, ts, py, java, kt, swift, c, cpp, html, css, json, xml, yaml, yml.Checks if the file is an archive (compressed folder).Supports common formats:
zip, rar, 7z, tar, gz, bz2.Checks if the file is a vector graphic or design file.Supports common formats:
svg, ai, eps, fig, psd.Checks if the file is hidden, based on the Unix convention of starting the filename with a dot (.).
