When using file manager's copy and paste (via context menu and or keyboard shortcuts), the internal clipboard is set to null immediately after pasting, regardless of whether the clipboard action was "copy" or "move"
So you can't copy a file and paste it into multiple folders without re-copying each time.
Where it happens:
case "paste":
if (copyRef.current) {
api.exec(
copyRef.current.action === "copy" ? "copy-files" : "move-files",
{
ids: copyRef.current.ids,
target: contextArg?.type === "folder" ? contextArg.id : path,
}
);
copyRef.current = null; // <-- clears clipboard unconditionally
}
break;
Suggested fix: only clear clipboard when action was cut/move
case "paste":
if (copyRef.current) {
api.exec(
copyRef.current.action === "copy" ? "copy-files" : "move-files",
{
ids: copyRef.current.ids,
target: contextArg?.type === "folder" ? contextArg.id : path,
}
);
if (copyRef.current.action !== "copy") {
copyRef.current = null;
}
}
break;
version: 2.4.4
When using file manager's copy and paste (via context menu and or keyboard shortcuts), the internal clipboard is set to null immediately after pasting, regardless of whether the clipboard action was "copy" or "move"
So you can't copy a file and paste it into multiple folders without re-copying each time.
Where it happens:
Suggested fix: only clear clipboard when action was cut/move
version: 2.4.4