diff --git a/lib/livebook/file_system/local.ex b/lib/livebook/file_system/local.ex index 6d844ff9e..c7c1c78d0 100644 --- a/lib/livebook/file_system/local.ex +++ b/lib/livebook/file_system/local.ex @@ -269,7 +269,7 @@ defimpl Livebook.FileSystem, for: Livebook.FileSystem.Local do File.close(state.device) with :ok <- File.mkdir_p(Path.dirname(state.path)), - :ok <- File.rename(state.download_path, state.path) do + :ok <- rename_or_move(state.download_path, state.path) do :ok else {:error, error} ->