kes-kopyala-yapıştır eklendi
This commit is contained in:
@@ -64,3 +64,15 @@ export async function renameFolder(path, newName) {
|
||||
});
|
||||
return res.json();
|
||||
}
|
||||
|
||||
export async function copyEntry(sourcePath, targetDirectory) {
|
||||
const res = await apiFetch("/api/file/copy", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({
|
||||
sourcePath,
|
||||
targetDirectory
|
||||
})
|
||||
});
|
||||
return res.json();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user