mirror of
https://github.com/HeyPuter/puter.git
synced 2025-01-23 22:40:20 +08:00
fixed sorting logic on directory list
This commit is contained in:
parent
a646b02e45
commit
fabc21ecf7
@ -206,7 +206,7 @@ const upload = async function(items, dirPath, options = {}){
|
||||
// Generate the requests to create all the
|
||||
// folders in this upload
|
||||
//-------------------------------------------------
|
||||
dirs.sort();
|
||||
dirs.sort((a, b) => b.path.length - a.path.length);
|
||||
let mkdir_requests = [];
|
||||
|
||||
for(let i=0; i < dirs.length; i++){
|
||||
|
Loading…
Reference in New Issue
Block a user