mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 02:15:01 +00:00
Remove duplicate function
This commit is contained in:
parent
18ee5418b6
commit
bd6c978d79
1 changed files with 0 additions and 16 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue