even though I thought URLs were designed for networks
They were? AFAICT file:
URLs have been around as long as http:
URLs.
Anyway, if you’re curious as to why Foundation works this way, see my explanation here.
Which isn’t to say that everything is peachy when it comes to file system APIs in Swift. As you’ve noted, there’s a lot of room for improvement.
Share and Enjoy
Quinn “The Eskimo!” @ DTS @ Apple