add logic to create folder
This commit is contained in:
parent
46cfd49bca
commit
3ff323ae71
@ -980,7 +980,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
try {
|
||||
const client = (0,_nextcloud_files_dav__WEBPACK_IMPORTED_MODULE_0__.getClient)();
|
||||
const filePath = `/files/admin${this.current_dir}/${this.newFileName}`;
|
||||
await client.createFile(filePath, '');
|
||||
await client.createDirectory(filePath, '');
|
||||
this.newFileName = '';
|
||||
this.isAddFilePopupVisible = false;
|
||||
await this.fetchFiles();
|
||||
|
File diff suppressed because one or more lines are too long
@ -184,7 +184,7 @@ export default {
|
||||
try {
|
||||
const client = getClient();
|
||||
const filePath = `/files/admin${this.current_dir}/${this.newFileName}`;
|
||||
await client.createFile(filePath, '');
|
||||
await client.createDirectory(filePath, '');
|
||||
this.newFileName = '';
|
||||
this.isAddFilePopupVisible = false;
|
||||
await this.fetchFiles();
|
||||
|
Loading…
x
Reference in New Issue
Block a user