I was thinking more along the lines of usability/idiot-proofing - don't 
know if an average user knows the significance of a trailing slash when 
typing out a url.
I will remove the slice if you like.

On 2014-02-11 3:24 AM, Eran Hammer wrote:
>
> In lib/directory.js:
>
> > @@ -78,6 +78,19 @@ exports.handler = function (route, options) {
> >
> >          Async.forEachSeries(paths, function (path, next) {
> >
> > +            // Construct path if default extension set
> > +            if (settings.defaultExtension) {
> > +
> > +                var fileName = selection;
> > +
> > +                if (fileName.lastIndexOf('/') === fileName.length - 1) {
> > +                    fileName = fileName.slice(0, -1);
>
> I'm not following the logic of turning an explicit directory to a 
> file. Replacing default/ with default.html makes no sense to me.
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/spumko/hapi/pull/1383/files#r9616171>.
>