Remove duplicate function

This commit is contained in:
Jordan Eldredge 2025-11-05 00:36:00 -05:00
parent 18ee5418b6
commit bd6c978d79

View file

@ -56,22 +56,6 @@ export async function uploadFiles(
await execFile(IA_COMMAND, args, { env: getVenvEnv() });
}
export async function uploadFiles(
identifier: string,
filepaths: string[],
metadata?: { [key: string]: string }
): Promise<any> {
const args = ['upload', identifier, ...filepaths];
if (metadata) {
Object.entries(metadata).forEach(([key, value]) => {
args.push(`--metadata=${key}:${value}`);
});
}
await execFile(IA_COMMAND, args, { env: getVenvEnv() });
}
export async function identifierExists(identifier: string): Promise<boolean> {
const result = await execFile(IA_COMMAND, ['metadata', identifier], {
env: getVenvEnv(),