def set_marker(folder):
 name = cfg.marker_file()
 if name:
  path = os.path.join(folder, name)
  logging.debug('Create marker file %s', path)
  try:
   fp = open(path, 'w')
   fp.close()
  except:
   logging.info('Cannot create marker file %s', path)
   logging.info('Traceback: ', exc_info=True)
   name = None
 return name

def set_marker ( folder ) : name = cfg . marker_file ( ) if name : path = os . path . join ( folder , name ) logging . debug ( 'Create marker file %s' , path ) try : fp = open ( path , 'w' ) fp . close ( ) except : logging . info ( 'Cannot create marker file %s' , path ) logging . info ( 'Traceback: ' , exc_info = True ) name = None return name
set marker file and return name .