10 lines
359 B
Python
10 lines
359 B
Python
# 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}") |