This seems like an odd condition to use for this.  It's assuming something about what happens with and without a suffix.  Why wouldn't we want to always rstrip the slashes?