File

class moco_wrapper.util.io.File(file_path, file_name=None)

Helper class for handling files

classmethod load(path)

Helper method to create a File object from a path.

Returns:PurchaseFile object
Return type:PurchaseFile
to_base64()

Converts the content of the file to its base64 representation.

Returns:File content as base64
Return type:str