Options
All
  • Public
  • Public/Protected
  • All
Menu

Class default

Hierarchy

  • default

Index

Constructors

Properties

Methods

Constructors

constructor

  • new default(bucket: string): default

Properties

bucket

bucket: string

Private uploadRecursive

uploadRecursive: any

Upload a directory and its subdirectories to an S3 bucket recursively.

param
param
param
param
returns

Methods

list

  • list(prefix?: string): Promise<any>
  • List objects in the bucket

    Parameters

    • Optional prefix: string

      List all objects with specified prefix

    Returns Promise<any>

upload

  • upload(path: string, remoteKey?: string): Promise<any>
  • Upload file or directory to s3

    Parameters

    • path: string

      Local path

    • Optional remoteKey: string

      Remote key prefix

    Returns Promise<any>

uploadDir

  • uploadDir(localpath: string, remoteKey: string): Promise<any>

Generated using TypeDoc