sync
This commit is contained in:
10
buzzer_tool/core/commands/mkdir.py
Normal file
10
buzzer_tool/core/commands/mkdir.py
Normal file
@@ -0,0 +1,10 @@
|
||||
# core/commands/mkdir.py
|
||||
from core.connection import BuzzerError
|
||||
|
||||
def execute(conn, path: str):
|
||||
"""Erstellt ein Verzeichnis auf dem Controller."""
|
||||
try:
|
||||
conn.send_command(f"mkdir {path}")
|
||||
print(f"📁 Verzeichnis '{path}' erfolgreich erstellt.")
|
||||
except BuzzerError as e:
|
||||
print(f"❌ Fehler beim Erstellen von '{path}': {e}")
|
||||
Reference in New Issue
Block a user