Remove assumption about root path ()

This commit is contained in:
Juha 2021-04-17 21:32:19 +03:00 committed by GitHub
parent 73caecc7f1
commit 08c4025bd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,7 +121,7 @@ defmodule LivebookWeb.PathSelectComponent do
end)
file_infos =
if dir == "/" do
if Path.dirname(dir) == dir do
file_infos
else
parent_dir = file_info(dir, "..", basename, running_paths)