implemented creation of directory within user folder

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-09-30 14:31:58 +02:00
parent f57be465a9
commit 06118365b8
3 changed files with 29 additions and 7 deletions

View File

@@ -35,15 +35,15 @@
async function create_dir(ev){
ev.preventDefault();
ev.stopPropagation();
const url = api('files/'+path+'/'+new_dir);
alert(url);
const url = api('files'+path+'/'+new_dir);
const res = await fetch(url,{
credentials: 'include',
method: 'POST'
});
if (res.ok) {
yikes();
loadChildren(window.location.pathname)
loadChildren(window.location.pathname);
new_dir = null;
} else {
error(res);
}