CMS 3D CMS Logo

Functions | Variables
filesFinder Namespace Reference

Functions

def getFilePathsFromWalk (osWalkResult, file, exceptPaths=[])
 

Variables

 __author__
 
 __date__
 

Function Documentation

◆ getFilePathsFromWalk()

def filesFinder.getFilePathsFromWalk (   osWalkResult,
  file,
  exceptPaths = [] 
)

Definition at line 8 of file filesFinder.py.

8 def getFilePathsFromWalk(osWalkResult, file, exceptPaths = []):
9 
10  listOfFiles = []
11 
12  file = pathToRegEx(file)
13 
14  for root, dirs, files in osWalkResult:
15  for name in files:
16  excepted = False
17  fullPath = join(root,name)
18  for path in pathsToRegEx(exceptPaths):
19  if re.match(path, fullPath):
20  excepted = True
21  break
22  if not excepted and re.match(file, name):
23  listOfFiles.append(fullPath)
24  return listOfFiles

References join(), and pathToRegEx.pathsToRegEx().

Referenced by cmsCodeRulesChecker.runRules().

Variable Documentation

◆ __author__

filesFinder.__author__
private

Definition at line 1 of file filesFinder.py.

◆ __date__

filesFinder.__date__
private

Definition at line 2 of file filesFinder.py.

filesFinder.getFilePathsFromWalk
def getFilePathsFromWalk(osWalkResult, file, exceptPaths=[])
Definition: filesFinder.py:8
join
static std::string join(char **cmd)
Definition: RemoteFile.cc:17
pathToRegEx.pathsToRegEx
def pathsToRegEx(Paths)
Definition: pathToRegEx.py:7
pathToRegEx
Definition: pathToRegEx.py:1