Deletes a single file from a specified path within the bucket.
The path of the file within the bucket to be deleted.
A promise that resolves to void when the file has been deleted.
Deletes multiple files from specified paths within the bucket.
An array of paths for the files within the bucket to be deleted.
A promise that resolves to void when all specified files have been deleted.
Generates a URL for downloading a file from a specified path within the bucket.
The path of the file within the bucket for which to generate the download URL.
Optional
urlExpirationInSeconds: numberOptional expiration time in seconds for the download URL.
A promise that resolves to a GetDownloadUrlResponse
containing the download URL.
Retrieves metadata for a file located in a specified path within the bucket.
The path of the file within the bucket.
A promise that resolves to a GetFileMetadataResponse
containing the file's metadata.
Lists the contents of a directory within the bucket.
The path of the directory within the bucket.
A promise that resolves to a ListDirectoryContentsResponse
containing the directory contents.
Uploads a file to a specified directory within the bucket.
The directory path within the bucket where the file should be uploaded.
The file to upload.
Optional
expirationInSeconds: numberOptional expiration time in seconds for the upload.
A promise that resolves to void when the upload is complete.
StorageClient provides methods for managing files in a storage system (like S3).