HomeiOS Developmentios - Easy methods to change final path element of CKAsset's file?

ios – Easy methods to change final path element of CKAsset’s file?


Once I fetch file from CloudKit there’s an sqlite property identify outlined as CKAsset. I can entry it like this:

if let url = (file["sqlite"] as? CKAsset)?.fileURL {
    print(url)
}

file:///personal/var/cellular/Containers/Knowledge/Utility/08546025-C2F5-4F34-ADB5-D838E6579562/Library/Caches/CloudKit/788a2f506eeedcd325bb7001584f502b7927dda7/Property/742418AD-5CD2-4EED-AB26-F9D85708805B.010ac08f0c3c106954334632a7dce9bc9b3589ee7b

I’ve uploaded to CloudKit file named MyApp.sqlite. And now I want to have file with the identical identify because it was earlier than importing. How can I modify it? After all I understand how to replace url with what I would like, however altering url would not change file identify.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments