Normalize session tmp directory path (#604)

This commit is contained in:
Jonatan Kłosko 2021-10-18 22:35:51 +02:00 committed by GitHub
parent 87b657d81a
commit 06f83def3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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