trim_slash = function (path) {
        if (path[path.length - 1] === '/') {
            path = path.substr(0, path.length - 1);
        }
        return path;
    }
Finds all files in the specified directory and returns each file 
path as input. To recurse subdirectories, set the `recurse` op.

@param {String} path
@api public