AnyMux

API Reference

S3FileSystem

Implements IFileSystem using Amazon S3 as the backing store.

Constructor

new S3FileSystem(options: S3FileSystemOptions)

Options

OptionTypeDescription
bucketstringS3 bucket name
regionstringAWS region
prefixstring?Key prefix for all operations
credentialsobject?AWS credentials (accessKeyId, secretAccessKey)
endpointstring?Custom endpoint for S3-compatible services

Methods

Implements all IFileSystem methods: readFile, writeFile, readDir, stat, mkdir, rm, exists.