sync
This commit is contained in:
@@ -11,7 +11,7 @@ def get_file_tree(conn, target_path="/", recursive=False) -> list:
|
||||
cmd_path = target_path.rstrip('/') if target_path != '/' else '/'
|
||||
|
||||
try:
|
||||
lines = conn.send_command(f"ls {cmd_path}")
|
||||
lines = conn.list_directory(cmd_path)
|
||||
except BuzzerError as e:
|
||||
return [{"type": "E", "name": f"Fehler beim Lesen: {e}", "path": target_path}]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user