Update snippet to use fileURL instead of URL

I was having issues with this returning nil, changing the method to fileURLWithPath fixed it.