Create directory synchronously.
path to directory.
Try to acquire file extention from the path specified.
file path
file extension in form of '.xxx' or empty string if not found.
Parse directory to find all files with extensions specified.
absolute path to directory beeing searched.
array of extensions to be searched for.
Find list of files (images) in directory matching the format specified.
absolute path to the directory.
image format to be searched for.
Find image file format knowing its path.
Decodes image format based on file extentsion.
image file path to be recognized.
recognized image format or ImageFormat.UNKNOWN if not recognized.
Try to recognize file extension and return mathing image format if known.
file extension starting from "." dot character.
recognized ImageFormat enum or ImageFormat.UNKNOWN if not match was found.
Get array of known file extensions for ImageFormat specified.
one of known ImageFormat specifiers.
array of known image extensions or empty array if ImageFromat is not recognized (unknown).
Get file (image) MIME type string corresponding to image format.
If file path specifies extension with unsuported mime type returns empty string.
file path with one of supported image extensions.
MIME type string or empty string if corresponding MIME type is not found or not supported.
Get absolute path to the file or directory given path relative to package root.
path relative to package root directory.
absolute path to resource given.
Allows to list a content of directory or files matching expression.
path to directory or filtering expression that supports wildcards notation (i.e.: /dirPath/*.png)
list of files as string array.
Read entire content of the file asynchronously.
A path to a file. If a URL is provided, it must use the file:
protocol.
Promise with file contents in Buffer object.
Synchronously reads data buffer from file.
file contents in Buffer object.
Remove directory synchronously.
path to existing directory.
Remove file at given path synchronously.
path to existing file.
Write entire buffer to file asynchronously, replacing the file if it already exists.
file storage path.
buffer to be stored.
Promise.
Write entire buffer to file synchronously, replacing the file if it already exists.
file storage path.
buffer to be stored.
Generated using TypeDoc
Handy class for accessing file system resource.
Class in mainly focus on parsing image files, recognizing their formats and extensions.