CMS 3D CMS Logo

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.

00009                                                               :
00010 
00011     listOfFiles = []
00012 
00013     file = pathToRegEx(file)
00014 
00015     for root, dirs, files in osWalkResult:
00016         for name in files:
00017             excepted = False
00018             fullPath = join(root,name)
00019             for path in pathsToRegEx(exceptPaths):
00020                 if re.match(path, fullPath):
00021                     excepted = True
00022                     break
00023             if not excepted and re.match(file, name):
00024                 listOfFiles.append(fullPath)
00025     return listOfFiles

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.