mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
FilesystemProtocol/copyItem has an overload providing the default CopyStrategy Motivation: Based on user feedback from #2806 This makes it easier to use, especially when copying files such that it is irrelevant. Modifications: Add overload providing (at:to:shouldProceedAfterError:shouldCopyItem:) with CopyStrategy.platformDefault as the strategy. Fix a cancellation bug which resulted in a test being flaky. In addition made the test cover that case reliably to prevent it coming back. Result: A simpler and more robust to change API will exist for copyItem()