MCPcopy Create free account
hub / github.com/catboost/catboost / resfs_src

Function resfs_src

library/python/runtime_py3/__res.py:243–249  ·  view source on GitHub ↗

Return the root-relative file path of a resource key.

(key, resfs_file=False)

Source from the content-addressed store, hash-verified

241
242
243def resfs_src(key, resfs_file=False):
244 """
245 Return the root-relative file path of a resource key.
246 """
247 if resfs_file:
248 key = b'resfs/file/' + _b(key)
249 return find(b'resfs/src/' + _b(key))
250
251
252def resfs_has(path):

Callers 3

resfs_file_existsFunction · 0.90
resfs_readFunction · 0.85
_find_mod_pathMethod · 0.85

Calls 1

findFunction · 0.50

Tested by

no test coverage detected