Dosya taşıma ve "Full Rescan" özelliği eklendi.
This commit is contained in:
@@ -44,6 +44,18 @@ export async function deleteFromTrash(trashName) {
|
||||
return res.json();
|
||||
}
|
||||
|
||||
export async function moveEntry(sourcePath, targetDirectory) {
|
||||
const res = await apiFetch("/api/file/move", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({
|
||||
sourcePath,
|
||||
targetDirectory
|
||||
})
|
||||
});
|
||||
return res.json();
|
||||
}
|
||||
|
||||
export async function renameFolder(path, newName) {
|
||||
const res = await apiFetch("/api/folder", {
|
||||
method: "PATCH",
|
||||
|
||||
Reference in New Issue
Block a user