lib/run/execution.js
function getDirectoryTree(dir) {
    const items = [];
    return new Promise(function(resolve) {
        fs.walk(dir)
        .on('data', function (item) {
            items.push(item.path);
        })
        .on('end', function () {
            resolve(items);
        });
    });
}
function getDirectoryTree(dir) {
    const items = [];
    return new Promise(function(resolve) {
        fs.walk(dir)
        .on('data', function (item) {
            items.push(item.path);
        })
        .on('end', function () {
            resolve(items);
        });
    });
}
function getDirectoryTree ( dir ) { const items = [ ] ; return new Promise ( function ( resolve ) { fs . walk ( dir ) . on ( 'data' , function ( item ) { items . push ( item . path ) ; } ) . on ( 'end' , function ( ) { resolve ( items ) ; } ) ; } ) ; }
Helper function for capturing the state of a directory
Helper function for capturing the state of a directory