move multiple files at once

This commit is contained in:
2025-09-05 01:22:40 +02:00
parent 13e91fdfbf
commit 49c59cbaea
14 changed files with 224 additions and 112 deletions

View File

@@ -382,9 +382,9 @@ export async function fetchFileStream(
};
}
export async function moveFile(
export async function moveFiles(
warrenId: string,
currentPath: string,
currentPaths: string[],
targetPath: string
): Promise<{ success: boolean }> {
const { status } = await useFetch(getApiUrl(`warrens/files/mv`), {
@@ -392,7 +392,7 @@ export async function moveFile(
headers: getApiHeaders(),
body: JSON.stringify({
warrenId,
path: currentPath,
paths: currentPaths,
targetPath: targetPath,
}),
});