Why not just `rtrim` input with directory separator?

In this case no need to warn user `without trailing slash`