10 lines
345 B
Python
10 lines
345 B
Python
# core/commands/mkdir.py
|
|
from core.connection import BuzzerError
|
|
|
|
def execute(conn, path: str):
|
|
"""Spielt eine Datei auf dem Controller ab."""
|
|
try:
|
|
conn.send_command(f"play {path}")
|
|
print(f"▶️ Datei '{path}' wird abgespielt.")
|
|
except BuzzerError as e:
|
|
print(f"❌ Fehler beim Abspielen von '{path}': {e}") |