lib/node.io/io.js
function (path) {
        if (path[path.length - 1] === '/') {
            path = path.substr(0, path.length - 1);
        }
        return path;
    }
function (path) {
        if (path[path.length - 1] === '/') {
            path = path.substr(0, path.length - 1);
        }
        return path;
    }
function ( path ) { if ( path [ path . length - 1 ] === '/' ) { path = path . substr ( 0 , path . length - 1 ) ; } return path ; }
Trim trailing slash
Trim trailing slash