s3 adds support for remote prefix

This commit is contained in:
fyears
2024-01-06 21:53:52 +08:00
parent 586e587d96
commit b070f51f5d
8 changed files with 96 additions and 49 deletions
+1 -7
View File
@@ -615,13 +615,7 @@ export const uploadToRemote = async (
}
};
export const listFromRemote = async (
client: WrappedDropboxClient,
prefix?: string
) => {
if (prefix !== undefined) {
throw Error("prefix not supported (yet)");
}
export const listAllFromRemote = async (client: WrappedDropboxClient) => {
await client.init();
let res = await client.dropbox.filesListFolder({
path: `/${client.remoteBaseDir}`,