Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/TensorRT
/ _createDirIfNeeded
Function
_createDirIfNeeded
samples/python/downloader.py:70–76 ·
view source on GitHub ↗
(path)
Source
from the content-addressed store, hash-verified
68
69
70
def
_createDirIfNeeded(path):
71
the_dir = os.path.dirname(path)
72
try
:
73
os.makedirs(the_dir)
74
except
OSError
as
e:
75
if
e.errno != errno.EEXIST:
76
raise
77
78
79
def
download(data_dir, yaml_path, overwrite=False):
Callers
1
download
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected