Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
239
def
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
245
def
ensure_dir(path):
Callers
5
run
Method · 0.90
mid_run
Method · 0.90
link_tb
Method · 0.90
save_and_link_checkpoint
Method · 0.90
run
Method · 0.90
Calls
1
format
Method · 0.45
Tested by
1
run
Method · 0.72