mini_arcade_core.runtime.file.file_port

Service interfaces for runtime components.

Classes

FilePort

Interface for file operations.

Module Contents

class mini_arcade_core.runtime.file.file_port.FilePort

Interface for file operations.

write_bytes(path: str, data: bytes)

Write bytes to a file.

Parameters:
  • path (str) – Path to the file.

  • data (bytes) – Data to write.

write_text(path: str, text: str)

Write text to a file.

Parameters:
  • path (str) – Path to the file.

  • text (str) – Text to write.