Skip to content

Commit

Permalink
Fix a bad merge between #11926 and #11399
Browse files Browse the repository at this point in the history
  • Loading branch information
radeusgd committed Jan 8, 2025
1 parent 0681a43 commit dcb6477
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distribution/lib/Standard/Base/0.0.0-dev/src/System/File.enso
Original file line number Diff line number Diff line change
Expand Up @@ -953,12 +953,12 @@ Data_Link_From_File.from (that : File) = Data_Link_From_File.Value that
private _local_file_copy (source : File) (destination : File) (replace_existing : Boolean) -> Nothing =
File_Error.handle_java_exceptions source <|
copy_options = if replace_existing then [StandardCopyOption.REPLACE_EXISTING.to_text] else []
copy_builtin source destination copy_options
source.move_builtin destination copy_options

private _local_file_move (source : File) (destination : File) (replace_existing : Boolean) -> Nothing =
File_Error.handle_java_exceptions source <|
copy_options = if replace_existing then [StandardCopyOption.REPLACE_EXISTING.to_text] else []
move_builtin source destination copy_options
source.move_builtin destination copy_options

## On some filesystems some paths may be invalid,
we want to catch the Java exception and turn it into an Enso error.
Expand Down

0 comments on commit dcb6477

Please sign in to comment.