You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, after updating to Xcode 16.3.0 and using the simulator with iOS 18.4 I have a strange behavior causing errors in my unit tests when copying folders.
I think the issue comes from this method in Files extension Storage.
when copying the "Config" folder
produces this :
instead of this :
copyItem(atPath srcPath: String, toPath dstPath: String) is deprecated
using copyItem(at srcURL: URL, to dstURL: URL) and converting the path string to URL with URL(fileURLWithPath: path)
Gives the desired result.
The text was updated successfully, but these errors were encountered:
In Xcode 16.3, copyItem(atPath:toPath:) does not work correctly with nested folders:
* Given two nested folders A and B, it creates just one destination folder named AB instead of the expected A/B.
* Also, given a folder A containing a file B.txt, it creates the file AB.txt instead of the expected file-in-folder A/B.txt.
The copyItem(at:to:) method with URL parameters works as expected.
Credit: https://github.com/jlajara-quadient for bug report and solution.
Hello, after updating to Xcode 16.3.0 and using the simulator with iOS 18.4 I have a strange behavior causing errors in my unit tests when copying folders.
I think the issue comes from this method in Files extension Storage.


when copying the "Config" folder
produces this :
instead of this :

copyItem(atPath srcPath: String, toPath dstPath: String)
is deprecatedusing
copyItem(at srcURL: URL, to dstURL: URL)
and converting the path string to URL withURL(fileURLWithPath: path)
Gives the desired result.
The text was updated successfully, but these errors were encountered: