Just use pathinfo