MCPcopy Index your code
hub / github.com/pymupdf/PyMuPDF / get_n

Method get_n

pipcl.py:3293–3300  ·  view source on GitHub ↗

Returns new files matching , asserting that there are exactly .

(self, n)

Source from the content-addressed store, hash-verified

3291 ret.append(path)
3292 return ret
3293 def get_n(self, n):
3294 '''
3295 Returns new files matching <glob_pattern>, asserting that there are
3296 exactly <n>.
3297 ''&#x27;
3298 ret = self.get()
3299 assert len(ret) == n, f'{len(ret)=}: {ret}'
3300 return ret
3301 def get_one(self):
3302 ''&#x27;
3303 Returns new match of <glob_pattern>, asserting that there is exactly

Callers 1

get_oneMethod · 0.95

Calls 1

getMethod · 0.95

Tested by

no test coverage detected