tik_manager4.core.io

I/O Module to handle read/write operations.

Attributes

LOG

Classes

IO

Handler class for read/write operations.

Module Contents

class IO(file_path=None)

Handler class for read/write operations.

static file_exists(file_path)

Check if the file exists.

Args:

file_path (str): The file path to check.

get_modified_time()

Get the modified time of the file

read(file_path=None)

Read the given file and return the data.

Args:

file_path (str): The file path to read from.

Raises:

FileNotFoundError: If the file does not exist.

Returns:

dict: The data read from the file.

write(data, file_path=None)

Write the given data to the file.

Args:

data (dict): The data to write. file_path (str): The file path to write to.

Raises:

fl.Timeout: If the file is locked by another process.

property file_path
Return the file path.
LOG