From 06f83def3db3c3839f386a5f6e22d35d2d60f912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Mon, 18 Oct 2021 22:35:51 +0200 Subject: [PATCH] Normalize session tmp directory path (#604) --- lib/livebook/session.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/livebook/session.ex b/lib/livebook/session.ex index 0e5e67835..bb3e89b1c 100644 --- a/lib/livebook/session.ex +++ b/lib/livebook/session.ex @@ -719,7 +719,8 @@ defmodule Livebook.Session do end defp session_tmp_dir(session_id) do - path = Path.join([System.tmp_dir!(), "livebook", "sessions", session_id]) <> "/" + tmp_dir = System.tmp_dir!() |> Path.expand() + path = Path.join([tmp_dir, "livebook", "sessions", session_id]) <> "/" FileSystem.File.local(path) end