test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
filesFinder Namespace Reference

Functions

def getFilePathsFromWalk
 

Variables

string __author__ = "Aurelija"
 
string __date__ = "$2010-07-15 12.27.32$"
 

Function Documentation

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

Definition at line 8 of file filesFinder.py.

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

Referenced by cmsCodeRulesChecker.runRules().

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

Variable Documentation

string filesFinder.__author__ = "Aurelija"

Definition at line 1 of file filesFinder.py.

string filesFinder.__date__ = "$2010-07-15 12.27.32$"

Definition at line 2 of file filesFinder.py.