@aircodelabs/file-sdk
v1.0.2
Published
```ts import { Instance } from "file-sdk";
Downloads
6
Keywords
Readme
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/");