daemon: fixed issue creating directory for files when needed, within node

This commit is contained in:
Blake Harnden 2022-02-05 12:19:24 -08:00
parent 490a4acf24
commit 0e2219f6c8

View file

@ -201,7 +201,7 @@ class DockerNode(CoreNode):
temp.write(contents.encode("utf-8"))
temp.close()
temp_path = Path(temp.name)
directory = file_path.name
directory = file_path.parent
if str(directory) != ".":
self.cmd(f"mkdir -m {0o755:o} -p {directory}")
if self.server is not None: