MCPcopy
hub / github.com/mikf/gallery-dl / replace

Method replace

gallery_dl/postprocessor/compare.py:40–46  ·  view source on GitHub ↗
(self, pathfmt)

Source from the content-addressed store, hash-verified

38 )}, options)
39
40 def replace(self, pathfmt):
41 try:
42 if self._compare(pathfmt.realpath, pathfmt.temppath):
43 return self._equal(pathfmt)
44 except OSError:
45 pass
46 self._equal_cnt = 0
47
48 def enumerate(self, pathfmt):
49 num = 1

Callers 15

setup.pyFile · 0.80
capitalizeMethod · 0.80
test_quoteMethod · 0.80
test_from_timestampMethod · 0.80
categoryFunction · 0.80
replFunction · 0.80
options.pyFile · 0.80
collectFunction · 0.80
build_gallery_dl_1Function · 0.80
strip_rstFunction · 0.80

Calls 2

_compareMethod · 0.95
_equalMethod · 0.95

Tested by 5

capitalizeMethod · 0.64
test_quoteMethod · 0.64
test_from_timestampMethod · 0.64