if (![fileManager fileExistsAtPath:[storeURL path]])
ok but be careful: for a url like:
..../Documents/1158a3c96ca22c41b8e731b1d1af0e1e?d=mm&s=50
[storeURL path] will give you this path (applicable to [storeURL lastPathComponent] :
..../Documents/1158a3c96ca22c41b8e731b1d1af0e1e
but if you use lastPathComponent for a string like /var/mobile/Applications/DB92F4DC-49E4-4B4A-8271-6A9DAE6963BC/Documents/1158a3c96ca22c41b8e731b1d1af0e1e?d=mm&s=50 , it will give you 1158a3c96ca22c41b8e731b1d1af0e1e?d=mm&s=50
And that’s good, because in the URL '?' used for GET parameters, but if you mix with a string, you may have problems.
Mickaël Sep 03 2018-12-12T00: 00Z
source share