tasks/util/stream.js
function iteratePipeFile () {
    if (!isIterating()) { return undefined; }

    let data = iterateData;
    let file = data.collection[data.i];

    data.i++;

    if (data.i >= data.collection.length) {
        resetIterateData();
        pipeLastFile(file);
    } else {
        pipeFile(file, iteratePipeFile);
    }
}
function iteratePipeFile () {
    if (!isIterating()) { return undefined; }

    let data = iterateData;
    let file = data.collection[data.i];

    data.i++;

    if (data.i >= data.collection.length) {
        resetIterateData();
        pipeLastFile(file);
    } else {
        pipeFile(file, iteratePipeFile);
    }
}
function iteratePipeFile ( ) { if ( ! isIterating ( ) ) { return undefined ; } let data = iterateData ; let file = data . collection [ data . i ] ; data . i ++ ; if ( data . i >= data . collection . length ) { resetIterateData ( ) ; pipeLastFile ( file ) ; } else { pipeFile ( file , iteratePipeFile ) ; } }
Recursively pipe all files.

@function iteratePipeFile
@api private
Recursively pipe all files .