From 0e2219f6c8c7c7fe24a35f21dd4e953f6c8ac0c4 Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Sat, 5 Feb 2022 12:19:24 -0800 Subject: [PATCH] daemon: fixed issue creating directory for files when needed, within node --- daemon/core/nodes/docker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/core/nodes/docker.py b/daemon/core/nodes/docker.py index 6dca41e1..d5e928de 100644 --- a/daemon/core/nodes/docker.py +++ b/daemon/core/nodes/docker.py @@ -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: