apple / swift-foundation

The Foundation project
Apache License 2.0
2.29k stars 135 forks source link

FoundationEssentials: correct callbacks for `moveItem(atPath:toPath:)` #661

Closed compnerd closed 1 month ago

compnerd commented 1 month ago

In the case that the destination exists, we should check for continue after error. If the source does not exist, simply do nothing.

Furthermore, adjust the test to ensure that we are using the path spelling rather than the FSR.

compnerd commented 1 month ago

@swift-ci please test

compnerd commented 1 month ago

@swift-ci please test

compnerd commented 1 month ago

@swift-ci please test

compnerd commented 1 month ago

Okay, this should now correct the test and the Windows paths. I think that this is good to go.