finish fixing folder names when lots of slashes exist; closes #2377
This commit is contained in:
parent
fe849789a2
commit
4f21fa85f8
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ const schema = object().shape({
|
|||
|
||||
const generateDirectoryData = (name: string): FileObject => ({
|
||||
key: `dir_${name.split('/', 1)[0] ?? name}`,
|
||||
name: name.split('/', 1)[0] ?? name,
|
||||
name: name.replace(/^(\/*)/, '').split('/', 1)[0] ?? name,
|
||||
mode: '0644',
|
||||
size: 0,
|
||||
isFile: false,
|
||||
|
|
Loading…
Reference in a new issue