MCPcopy Create free account
hub / github.com/ActiveState/code / extend

Method extend

recipes/Python/259147_FSList/recipe-259147.py:287–295  ·  view source on GitHub ↗

subclass the extend method to handle wildcards, recursing and file filter.

(self, pattern, recursive = False, file_only = False)

Source from the content-addressed store, hash-verified

285 super(FSList, self).append(temp)
286
287 def extend(self, pattern, recursive = False, file_only = False):
288 """
289 subclass the extend method to handle wildcards, recursing
290 and file filter.
291 """
292 # expand any wildcards, recurse if asked, filter on files, etc.
293 temp = self._populate(pattern, recursive, file_only)
294 # then extend.
295 super(FSList, self).extend(temp)
296
297
298 # methods used only internally

Callers 15

intersperseMethod · 0.45
_extendOrAppendMethod · 0.45
_populateMethod · 0.45
_walktree_compatMethod · 0.45
recipe-121965.pyFile · 0.45
recipe-107027.pyFile · 0.45
recipe-119029.pyFile · 0.45
walktreeFunction · 0.45
ToTimeTupleMethod · 0.45
graftFunction · 0.45
_log2Function · 0.45
extendFunction · 0.45

Calls 1

_populateMethod · 0.95

Tested by

no test coverage detected