def get_file(printer: Printer, origin, filename): """ Returns data about specific file on printer """ client = OctoClient(url=printer.url, apikey=printer.apikey) return client.files(origin + "/" + filename)
def get_files(printer: Printer): """ Returns data about files currently present on printer """ client = OctoClient(url=printer.url, apikey=printer.apikey) return client.files()