Checking if path is a public folder