mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
update traversing method
change DFS to BFS with same level folders fetched concurrently. merge helper class into traversing func.
This commit is contained in:
@@ -318,7 +318,7 @@ const FileListing: FunctionComponent<{ query?: ParsedUrlQuery }> = ({ query }) =
|
||||
})()
|
||||
setFolderGenerating({ ...folderGenerating, [id]: true })
|
||||
const toastId = toast.loading('Downloading folder. Refresh to cancel, this may take some time...')
|
||||
downloadTreelikeMultipleFiles(files, name).then(() => {
|
||||
downloadTreelikeMultipleFiles(files, path, name).then(() => {
|
||||
setFolderGenerating({ ...folderGenerating, [id]: false })
|
||||
toast.dismiss(toastId)
|
||||
toast.success('Finished to download folder.')
|
||||
|
||||
Reference in New Issue
Block a user