MCPcopy Create free account
hub / github.com/MStypulkowski/diffused-heads / get_temp_path

Function get_temp_path

utils.py:152–157  ·  view source on GitHub ↗
(tmp_dir, mode="", ext="")

Source from the content-addressed store, hash-verified

150
151
152def get_temp_path(tmp_dir, mode="", ext=""):
153 file_path = next(tempfile._get_candidate_names()) + mode + ext
154 if not os.path.exists(tmp_dir):
155 os.makedirs(tmp_dir)
156 file_path = os.path.join(tmp_dir, file_path)
157 return file_path
158
159
160def swp_extension(file, ext):

Callers 1

save_videoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected