original_docstring: tool to find files based on user request.  This can be a single file, a folder start point for recursive search or a wild card
docstring: tool to find files based on user request.  This can be a single file, a folder start point for recursive search or a wild card
docstring_tokens: tool to find files based on user request . This can be a single file a folder start point for recursive search or a wild card
code: def findFiles2(recursive, filespec, filter):
  	'''tool to find files based on user request.  This can be a single file, a folder start point for recursive search or a wild card'''
  	matches = []
  	if recursive:
  		matches = glob(os.path.join(filespec, "**", filter), recursive = True)
  	else:
  		matches = glob(os.path.join(filespec, filter))
  	
  	mclean = []
  	for m in matches:
  		mclean.append(m.replace('\\','/'))
  		
  	# if len(mclean) == 0:
  	# 	print ("Nothing found to convert, quitting")
  		# exit()
  	return mclean
code_tokens: def findFiles2 ( recursive , filespec , filter ) : matches = [ ] if recursive : matches = glob ( os . path . join ( filespec , "**" , filter ) , recursive = True ) else : matches = glob ( os . path . join ( filespec , filter ) ) mclean = [ ] for m in matches : mclean . append ( m . replace ( '\\' , '/' ) ) return mclean
short_docstring: tool to find files based on user request.
short_docstring_tokens: tool to find files based on user request .
comment: '''tool to find files based on user request.  This can be a single file, a folder start point for recursive search or a wild card'''$SEP$# if len(mclean) == 0:$SEP$# 	print ("Nothing found to convert, quitting")$SEP$# exit()