URL/FilePath guess function
Docs