tool.js
function (directory, filename) {

        return Path.join(directory, filename).replace(/^[a-z]:\\/i, '/').replace(/\\/g, '/');

    }
function (directory, filename) {

        return Path.join(directory, filename).replace(/^[a-z]:\\/i, '/').replace(/\\/g, '/');

    }
function ( directory , filename ) { return Path . join ( directory , filename ) . replace ( / ^[a-z]:\\ / i , '/' ) . replace ( / \\ / g , '/' ) ; }
Joins a directory and a filename, replaces Windows forward-slash with a backslash.
Joins a directory and a filename replaces Windows forward - slash with a backslash .