Protected_Protected_Protected_Protected_Deletes a file from the local storage volume.
File to delete.
True if deleted, False if it didn't exist.
Downloads a stored file into a specific local directory (usually outside the storage pool).
Original file to extract.
Destination tracking object.
A promise resolving to the downloaded file's path.
Extracts the first page of a document (e.g. PDF) via ImageMagick, resizes it, and uploads it as a thumbnail.
Original document footprint.
Array of desired thumbnail dimensions (px).
A mapping of generated thumbnail identifiers to their respective storage refs.
Downloads an image, generates resized thumbnails via sharp, and uploads them back.
Original image footprint.
Array of desired thumbnail dimensions (px).
A mapping of generated thumbnail identifiers to their respective storage refs.
Entry point for thumbnail generation. Analyzes the content type and automatically delegates to the appropriate generation strategy (Image, Video, or Document).
Target file footprint.
Desired dimensions.
The generated thumbnail map, or an empty object if unsupported/failed.
Extracts a single frame from a remote video via ffmpeg, resizes it, and uploads the frame as an image thumbnail.
Original video footprint.
Array of desired thumbnail dimensions (px).
A mapping of generated thumbnail identifiers to their respective storage refs.
Computes statistics for a given bucket.
Optionalbucket: stringTarget bucket name.
Optionalprefix: stringOptional directory prefix.
A promise resolving to bucket statistics.
Provides direct access to the underlying fs-extra driver.
The fs module wrapper.
Initializes a Node.js Readable stream from the disk file.
Target file.
A promise resolving to the ReadStream.
Bypasses standard web upload links by returning a local URI for manual OS placement.
The target file.
OptionalexpiresIn: numberIgnored.
A promise resolving to the file URI string.
Generates a local file:// URI protocol link for system interoperability.
Target file.
OptionalexpiresIn: numberIgnored for local files.
Optionalaction: stringIgnored.
Optionalextra: anyIgnored.
A promise resolving to the local file URI string.
ProtectedisChecks if the file is a video or audio stream based on its MIME type or file extension.
Target file.
True if the file represents a video or audio asset.
Creates a read stream and directly pipes it to an output (e.g. an HTTP response).
File to stream.
The writable destination pipe.
Provides a localized file system storage backend. Perfect for development or single-node deployments using local disk volumes.