mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-25 21:06:08 +08:00
parent
864624ad2c
commit
59e4713008
1 changed files with 2 additions and 0 deletions
|
|
@ -380,6 +380,8 @@ defmodule LivebookWeb.HomeLive do
|
||||||
end
|
end
|
||||||
|
|
||||||
defp determine_file(%{"path" => path} = _params) do
|
defp determine_file(%{"path" => path} = _params) do
|
||||||
|
path = Path.expand(path)
|
||||||
|
|
||||||
cond do
|
cond do
|
||||||
File.dir?(path) ->
|
File.dir?(path) ->
|
||||||
path
|
path
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue