Expand path before opening it (another attempt)

See: 864624ad2c
This commit is contained in:
Wojtek Mach 2022-03-02 11:51:31 +01:00
parent 864624ad2c
commit 59e4713008

View file

@ -380,6 +380,8 @@ defmodule LivebookWeb.HomeLive do
end
defp determine_file(%{"path" => path} = _params) do
path = Path.expand(path)
cond do
File.dir?(path) ->
path