def create_pairtree_marker(folder):
 if (not (folder[:(-1)] == '/')):
  folder = (folder + '/')
 directory = os.path.dirname(folder)
 if (not os.path.exists(directory)):
  os.makedirs(directory)
 target = os.path.join(directory, 'pairtree_version0_1')
 if os.path.exists(target):
  return
 open(target, 'wb').close()

def create_pairtree_marker ( folder ) : if ( not ( folder [ : ( - 1 ) ] == '/' ) ) : folder = ( folder + '/' ) directory = os . path . dirname ( folder ) if ( not os . path . exists ( directory ) ) : os . makedirs ( directory ) target = os . path . join ( directory , 'pairtree_version0_1' ) if os . path . exists ( target ) : return open ( target , 'wb' ) . close ( )
creates the pairtree marker for tests if it doesnt exist .