Move selected browser directory into directory name
This commit is contained in:
@@ -149,7 +149,7 @@ export class FileTreeComponent implements OnInit, OnDestroy {
|
||||
const file = files[i];
|
||||
if (file.webkitRelativePath?.includes('/')) {
|
||||
// Got a file in a folder, so put it into the appropriate folder in the tree
|
||||
const splitFilePath = file.webkitRelativePath.split('/');
|
||||
const splitFilePath = file.webkitRelativePath.split('/').slice(1);
|
||||
let currentChildren: FileOrFolder[] | undefined = mappedFiles;
|
||||
for (let j = 0; j < splitFilePath.length - 1; j++) {
|
||||
const relativePath = splitFilePath[j];
|
||||
|
||||
Reference in New Issue
Block a user