#NEWLINE# def export_file_geodatabase( ) : #NEWLINE# #INDENT# 'Exports the feature class to a file geodatabase\n    \n    Returns:\n        None\n    ' #NEWLINE# folder = 'gdb' #NEWLINE# name = get_dataset_filename ( ) #NEWLINE# temp_working_folder = os . path . join ( temp_workspace , folder ) #NEWLINE# create_folder ( temp_working_folder , True ) #NEWLINE# gdb_temp = os . path . join ( temp_working_folder , ( name + '.gdb' ) ) #NEWLINE# gdb_feature_class = os . path . join ( gdb_temp , name ) #NEWLINE# if ( not arcpy . Exists ( gdb_temp ) ) : #NEWLINE# #INDENT# logger . debug ( ( ( ( 'Creating temp file geodatabase v' + args . gdb_version ) + ' for processing:' ) + gdb_temp ) ) #NEWLINE# arcpy . CreateFileGDB_management ( os . path . dirname ( gdb_temp ) , os . path . basename ( gdb_temp ) , args . gdb_version ) #NEWLINE# #UNINDENT# logger . debug ( ( 'Copying featureclass from:' + source_feature_class ) ) #NEWLINE# logger . debug ( ( 'Copying featureclass to:' + gdb_feature_class ) ) #NEWLINE# arcpy . CopyFeatures_management ( source_feature_class , gdb_feature_class ) #NEWLINE# return gdb_feature_class