def METHOD_NAME(mode):
    """Convert a file's mode to a string in format '-rwxrwxrwx'.
    Args:
       mode (int): st_mode field of a file or directory from os.stat_result (Example: 16893)
    Returns:
        string: Permissions set '-rwxrwxrwx'
    Example:
        33204 --> -rw-rw-r--
    """
    file_permission = []
    for item in _filemode_list:
        for stat_flag, stat_value in item.items():
            if mode & stat_flag == stat_flag:
                file_permission.append(stat_value)
                break
        else:
            file_permission.append('-')
    return ''.join(file_permission)