original_docstring: Assure that the directory pointed to by path exists.
  	
  	:param is_file: If True, path is assumed to be a file and handled correctly.
  		Otherwise it must be a directory
  	:return: True if the directory was created, False if it already existed
docstring: Assure that the directory pointed to by path exists.
docstring_tokens: Assure that the directory pointed to by path exists .
code: def assure_directory_exists(path, is_file=False):
  	"""Assure that the directory pointed to by path exists.
  	
  	:param is_file: If True, path is assumed to be a file and handled correctly.
  		Otherwise it must be a directory
  	:return: True if the directory was created, False if it already existed"""
  	if is_file:
  		path = os.path.dirname(path)
  	#END handle file 
  	if not os.path.isdir(path):
  		os.makedirs(path)
  		return True
  	return False
code_tokens: def assure_directory_exists ( path , is_file = False ) : if is_file : path = os . path . dirname ( path ) if not os . path . isdir ( path ) : os . makedirs ( path ) return True return False
short_docstring: Assure that the directory pointed to by path exists.
short_docstring_tokens: Assure that the directory pointed to by path exists .
comment: """Assure that the directory pointed to by path exists.
  	
  	:param is_file: If True, path is assumed to be a file and handled correctly.
  		Otherwise it must be a directory
  	:return: True if the directory was created, False if it already existed"""$SEP$#END handle file 