mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-13 10:28:29 +08:00
Normalize session tmp directory path (#604)
This commit is contained in:
parent
87b657d81a
commit
06f83def3d
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue