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

Method append

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

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

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

Source from the content-addressed store, hash-verified

275 self[:] = [item for time, item in flist_copy]
276
277 def append(self, pattern, recursive = False, file_only = False):
278 """
279 subclass the append method to handle wildcards, recursing
280 and file filter.
281 """
282 # expand any wildcards, recurse if asked, filter on files, etc.
283 temp = self._populate(pattern, recursive, file_only)
284 # then just append.
285 super(FSList, self).append(temp)
286
287 def extend(self, pattern, recursive = False, file_only = False):
288 """

Callers 15

_rnlstMethod · 0.45
parse_windowsFunction · 0.45
fFunction · 0.45
_extendOrAppendMethod · 0.45
_populateMethod · 0.45
_walktree_compatMethod · 0.45
accumListFunction · 0.45
rezipFunction · 0.45
__setitem__Method · 0.45
recvallFunction · 0.45
__init__Method · 0.45
dec2binFunction · 0.45

Calls 1

_populateMethod · 0.95

Tested by

no test coverage detected