mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 04:23:01 +00:00
process silence with processes instead of threads
- might help memory issues? + fix double slash problem on windows?
This commit is contained in:
+3
-4
@@ -99,11 +99,12 @@ def get_folder_tree(body: FolderTree):
|
||||
if is_windows():
|
||||
# Trailing slash needed when drive letters are passed,
|
||||
# Remember, the trailing slash is removed in the client.
|
||||
req_dir += "/"
|
||||
# req_dir += "/"
|
||||
pass
|
||||
else:
|
||||
req_dir = "/" + req_dir if not req_dir.startswith("/") else req_dir
|
||||
|
||||
res = get_files_and_dirs(
|
||||
return get_files_and_dirs(
|
||||
req_dir,
|
||||
start=body.start,
|
||||
limit=body.limit,
|
||||
@@ -114,8 +115,6 @@ def get_folder_tree(body: FolderTree):
|
||||
foldersort_reverse=body.foldersort_reverse,
|
||||
)
|
||||
|
||||
return res
|
||||
|
||||
|
||||
def get_all_drives(is_win: bool = False):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user