feat: Initial of the sdk

This commit is contained in:
J M
2022-06-29 11:20:34 -06:00
parent ce93434ab2
commit 2f9805d20a
8 changed files with 497 additions and 0 deletions

4
exists.ts Normal file
View File

@@ -0,0 +1,4 @@
import { Effects } from "./types.ts";
/** Used to check if the file exists before hand */
export const exists = (effects: Effects, props: { path: string, volumeId: string }) => effects.metadata(props).then(_ => true, _ => false);