added function filePathFromUrl()