mirror of
https://github.com/aljazceru/hummingbot-dashboard.git
synced 2026-01-03 13:34:24 +01:00
(feat) add method to get the directories
This commit is contained in:
@@ -54,6 +54,11 @@ def load_file(path: str) -> str:
|
||||
return ""
|
||||
|
||||
|
||||
def get_directories_from_directory(directory: str) -> list:
|
||||
directories = glob.glob(directory + "/**/")
|
||||
return directories
|
||||
|
||||
|
||||
def get_python_files_from_directory(directory: str) -> list:
|
||||
py_files = glob.glob(directory + "/**/*.py", recursive=True)
|
||||
py_files = [path for path in py_files if not path.endswith("__init__.py")]
|
||||
|
||||
Reference in New Issue
Block a user