parameters: (parentDirectory="")
docstring: Make sure the run directory is clean before starting
docstring_summary: Make sure the run directory is clean before starting
docstring_tokens: Make sure the run directory is clean before starting
function: def verifyDirectoryFiles(parentDirectory=""):
      """
      Make sure the run directory is clean before starting
      """
      # If any of these is present, don't do anything.
      mustNotExist = ['Data']
      
      for name in mustNotExist:
          path = os.path.abspath(os.path.join(parentDirectory, name))
          
          if os.path.lexists(path):
              print('%s must not exist. Remove it before running this script.' % path)
              exit(1)
function_tokens: def verifyDirectoryFiles ( parentDirectory = "" ) : # If any of these is present, don't do anything. mustNotExist = [ 'Data' ] for name in mustNotExist : path = os . path . abspath ( os . path . join ( parentDirectory , name ) ) if os . path . lexists ( path ) : print ( '%s must not exist. Remove it before running this script.' % path ) exit ( 1 )