implemented creation of directory within user folder
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user