mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-09 21:16:26 +08:00
Fix chunked write for local file system to handle cross-partition copy
This commit is contained in:
parent
ad40b84f10
commit
3987fc29c8
1 changed files with 1 additions and 1 deletions
|
@ -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} ->
|
||||
|
|
Loading…
Add table
Reference in a new issue