def make_temp_dir(shell):
path = "".join(random.choice(string.ascii_lowercase) for i in range(10))
full_path = join("/tmp", path)
try:
shell.run(["mkdir", full_path])
return full_path
except api.common.WebException as e:
return None
评论列表
文章目录