lib/io_streams/path.rb in iostreams-1.4.0 vs lib/io_streams/path.rb in iostreams-1.5.0

- old
+ new

@@ -80,18 +80,20 @@ def size raise NotImplementedError end # Cleanup an incomplete write to the target "file" if the copy fails. + # rubocop:disable Lint/SuppressedException def copy_from(source, **args) super(source, **args) rescue StandardError => e begin delete rescue NotImplementedError end raise(e) end + # rubocop:enable Lint/SuppressedException # Moves the file by copying it to the new path and then deleting the current path. # Returns [IOStreams::Path] the target path. # # Notes: