MCPcopy Create free account
hub / github.com/RenderKit/oidn / download_file

Function download_file

scripts/common.py:20–24  ·  view source on GitHub ↗
(url, output_dir)

Source from the content-addressed store, hash-verified

18 exit(1)
19
20def download_file(url, output_dir):
21 print('Downloading file:', url)
22 filename = os.path.join(output_dir, os.path.basename(url))
23 urlretrieve(url, filename=filename)
24 return filename
25
26def extract_package(filename, output_dir):
27 print('Extracting package:', filename)

Callers 1

build.pyFile · 0.85

Calls 1

printFunction · 0.85

Tested by

no test coverage detected