This should probably be an `NSError`, not an assertion (e.g., in case the path/URL is user-provided).