def createfile(self, project_id, file_path, branch_name, encoding, content, commit_message):
        """
        Creates a new file in the repository

        :param project_id: project id
        :param file_path: Full path to new file. Ex. lib/class.rb
        :param branch_name: The name of branch
        :param content: File content
        :param commit_message: Commit message
        :return: true if success, false if not
        """
        data = {
            'file_path': file_path,
            'branch_name': branch_name,
            'encoding': encoding,
            'content': content,
            'commit_message': commit_message
        }

        request = requests.post(
            '{0}/{1}/repository/files'.format(self.projects_url, project_id),
            verify=self.verify_ssl, auth=self.auth, headers=self.headers, data=data, timeout=self.timeout)

        return request.status_code == 201
Creates a new file in the repository

        :param project_id: project id
        :param file_path: Full path to new file. Ex. lib/class.rb
        :param branch_name: The name of branch
        :param content: File content
        :param commit_message: Commit message
        :return: true if success, false if not