diff --git a/lib/livebook_web/live/home_live/session_list_component.ex b/lib/livebook_web/live/home_live/session_list_component.ex index e24b25af8..9254bcd8f 100644 --- a/lib/livebook_web/live/home_live/session_list_component.ex +++ b/lib/livebook_web/live/home_live/session_list_component.ex @@ -18,7 +18,7 @@ defmodule LivebookWeb.HomeLive.SessionListComponent do show_autosave_note? = case Livebook.Settings.autosave_path() do nil -> false - path -> File.ls!(path) != [] + path -> match?({:ok, [_ | _]}, File.ls(path)) end socket =