def copy_file_metadata(source, destination):
 try:
  shutil.copy2(source, destination)
 except OSError as e:
  logger.warning(u'A problem occurred copying file %s to %s; %s', source, destination, e)

def copy_file_metadata ( source , destination ) : try : shutil . copy2 ( source , destination ) except OSError as e : logger . warning ( u'A problem occurred copying file %s to %s; %s' , source , destination , e )
copy a file and its metadata .