diff --git a/lib/livebook_web/live/home_live.ex b/lib/livebook_web/live/home_live.ex index 04878f730..91fbd7cce 100644 --- a/lib/livebook_web/live/home_live.ex +++ b/lib/livebook_web/live/home_live.ex @@ -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