def export_file_geodatabase():
    folder = 'gdb'
    name = get_dataset_filename()
    
    # Create a gdb folder in the temp directory if it does not exist
    temp_working_folder = os.path.join(temp_workspace,folder)
    create_folder(temp_working_folder, True)
    
    # Export the feature class to a temporary file gdb
    gdb_temp = os.path.join(temp_working_folder, name + '.gdb')
    gdb_feature_class = os.path.join(gdb_temp, name)

    if not arcpy.Exists(gdb_temp):
        logger.debug('Creating temp file geodatabase v' + args.gdb_version + ' for processing:' + gdb_temp)
        
        # Create an empty file geodatabase compatible back to ArcGIS 9.3+.
        arcpy.CreateFileGDB_management(os.path.dirname(gdb_temp), os.path.basename(gdb_temp), args.gdb_version) 

    logger.debug('Copying featureclass from:' + source_feature_class)
    logger.debug('Copying featureclass to:' + gdb_feature_class)
    arcpy.CopyFeatures_management(source_feature_class, gdb_feature_class)
    
    return gdb_feature_class
Exports the feature class to a file geodatabase
dataset/ETHPy150Open opencolorado/OpenColorado-Tools-and-Utilities/Scripts/ArcGIS/10.0/Python/PublishOpenDataset.py/export_file_geodatabase