1.0.2 • Published 2 years ago

@aircodelabs/file-sdk v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

usage

import { Instance } from "file-sdk";

const remote = {
  name: "http", // 使用 http 协议
  address: "127.0.0.1",
  port: 8080,
  family: "IPv4",
};
const region = "aliyun_hk"; // 存储区域,与 server 端 region 配置对应

const instance = Instance.create(remote, region);

const bucket = "hk-bucket1";

const files = await instance.listFile(bucket, "/prefix/");