davglass / cpr

Nodejs cp -R
Other
79 stars 80 forks source link

files array in callback not populated when confirm is true #8

Closed petey closed 10 years ago

petey commented 10 years ago
cpr('./mockData/', './results/', {
        confirm: true
}, function (err, files) {
        if (err) {
                return console.error('can not do it', err);
        }
        files.forEach(function (file) {
                console.log('copied: ', file);
        });
});

//No output, files is an empty array

davglass commented 10 years ago

Thanks, pushed in cpr@0.3.1