Skip to content

Y20240829-1000

tagged this 24 Aug 09:52
This commit refactors the code by moving the transferAttributes method
call outside of the try-with-resources block. Closing the OutputStream
prematurely could result in the destination FileStore not creating the
file before the file attributes are transferred. Additionally,
transferring attributes does not require the streams to remain open.

A TestFileStore and a matching test is provided.

This commit is an adjustment to
https://github.com/eclipse-platform/eclipse.platform/pull/1475.

Fixes https://github.com/eclipse-platform/eclipse.platform/issues/1524
Assets 2
Loading