MCPcopy Create free account
hub / github.com/comaps/comaps / get_or_create_unique_dir_path

Method get_or_create_unique_dir_path

tools/python/routing/src/utils.py:196–202  ·  view source on GitHub ↗
(self, *, prefix_path)

Source from the content-addressed store, hash-verified

194 LOG.info(f'Finish with exit code: {code}')
195
196 def get_or_create_unique_dir_path(self, *, prefix_path):
197 branch_hash_name = get_branch_hash_name(branch=self.branch, hash=self.hash)
198 result_dir = os.path.join(prefix_path, f'{branch_hash_name}_{self.cur_time_string}')
199 if not os.path.exists(result_dir):
200 os.mkdir(result_dir)
201
202 return result_dir

Callers 1

run_routes_builder_toolFunction · 0.80

Calls 2

get_branch_hash_nameFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected