mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-01 12:41:43 +08:00
Do not assume autosave path exists
This commit is contained in:
parent
efdbf67f59
commit
aaa4f406bf
1 changed files with 1 additions and 1 deletions
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue