mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-28 23:51:17 +00:00
process silence with processes instead of threads
- might help memory issues? + fix double slash problem on windows?
This commit is contained in:
1 parent
5c7d84396d
commit
561d70352f
3 files changed
+23
-16
No files matched your search
+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