Add create directory button
This commit is contained in:
parent
ba0757f05c
commit
d07ee9a36b
3 changed files with 142 additions and 25 deletions
9
resources/scripts/api/server/files/createDirectory.ts
Normal file
9
resources/scripts/api/server/files/createDirectory.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import http from '@/api/http';
|
||||
|
||||
export default (uuid: string, root: string, name: string): Promise<void> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
http.post(`/api/client/servers/${uuid}/files/create-folder`, { root, name })
|
||||
.then(() => resolve())
|
||||
.catch(reject);
|
||||
});
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue