MCPcopy Create free account
hub / github.com/VCIP-RGBD/DFormer / link_file

Function link_file

utils/pyt_utils.py:239–242  ·  view source on GitHub ↗
(src, target)

Source from the content-addressed store, hash-verified

237
238
239def link_file(src, target):
240 if os.path.isdir(target) or os.path.isfile(target):
241 os.system("rm -rf {}".format(target))
242 os.system("ln -s {} {}".format(src, target))
243
244
245def ensure_dir(path):

Callers 5

runMethod · 0.90
mid_runMethod · 0.90
link_tbMethod · 0.90
runMethod · 0.90

Calls 1

formatMethod · 0.45

Tested by 1

runMethod · 0.72