def smqtkFileIdFromName(gc, smqtkFolder, name):
    """
    Retrieve a SMQTK file ID from a given name.

    SMQTK file means a file stored in the .smqtk folder given.

    :param gc: An authenticated GirderClient instance
    :param smqtkFolder: The .smqtk folder object
    :param name: Name of the file
    :returns: File ID
    """
    item = list(gc.listItem(smqtkFolder['_id'], name=name))[0]
    return list(gc.listFile(item['_id']))[0]['_id']