Back to index

eyed3  0.6.18
Public Member Functions | Private Member Functions | Private Attributes
utils.FileWalker Class Reference

List of all members.

Public Member Functions

def __init__
def go

Private Member Functions

def _isExcluded

Private Attributes

 _handler
 _root
 _excludes

Detailed Description

Definition at line 115 of file utils.py.


Constructor & Destructor Documentation

def utils.FileWalker.__init__ (   self,
  handler,
  root,
  excludes = [] 
)

Definition at line 116 of file utils.py.

00116 
00117     def __init__(self, handler, root, excludes = []):
00118         self._handler = handler;
00119         self._root = root;
00120         self._excludes = excludes;


Member Function Documentation

def utils.FileWalker._isExcluded (   self,
  path 
) [private]

Definition at line 130 of file utils.py.

00130 
00131     def _isExcluded(self, path):
00132         for ex in self._excludes:
00133             match = re.compile(exd).search(path);
00134             if match and match.start() == 0:
00135                 return 1;
00136         return 0;

Here is the caller graph for this function:

def utils.FileWalker.go (   self)

Definition at line 121 of file utils.py.

00121 
00122     def go(self):
00123         for (root, dirs, files) in os.walk(self._root):
00124             for f in files:
00125                 f = os.path.abspath(root + os.sep + f);
00126                 if not self._isExcluded(f):
00127                     if self._handler.handleFile(f) == FileHandler.R_HALT:
00128                         return FileHandler.R_HALT;
00129         return self._handler.handleDone();

Here is the call graph for this function:


Member Data Documentation

Definition at line 119 of file utils.py.

Definition at line 117 of file utils.py.

Definition at line 118 of file utils.py.


The documentation for this class was generated from the following file: