libgs.database.KVDb.get_file

KVDb.get_file(fname)

Grab a file resource and return the bytes or string (.bin or .txt)

Parameters:fname – The name of the file resource
Returns:The resource, either as a string (if its a .txt file) or as a bytearray (if its a .bin file)