I’m trying copy folder to root of repo. But now I can copy folder ONLY INSIDE ANOTHER FOLDER.
Field “dst_parent_dir” cannot be like ‘/’. It has to be like '/folder-name.
Here is body of requst options
body: JSON.stringify({
src_repo_id: repi_id,
src_parent_dir: '/',
src_dirent_name: 'folder that I'm copying',
dst_repo_id: repi_id,
dst_parent_dir: '/'
})
So, how copy folder inside basic, initial root?
I did not reproduce your problems, you can try it in the openapi interface in our documents. The request should somehow like:
curl --request POST \
--url https://<seafile-server>/api/v2.1/move-folder-merge/ \
--header 'accept: application/json' \
--header 'authorization: Bearer xxxx' \
--header 'content-type: application/json' \
--data '
{
"src_repo_id": "83066b00-67ef-4068-b738-7a7381558d1a",
"src_parent_dir": "/",
"src_dirent_name": "scripts",
"dst_repo_id": "525e80fa-25cb-469d-8e35-de7600e17acb",
"dst_parent_dir": "/"
}
'
Why src_repo_id and dst_repo_id are different?
I want copy folder to same repo.
__
Also question, how copy folder and change it name?
Because now folder creates with ‘(1)’ at the end of name ad duplicate.