index.js
function compareContents(stream, sourceFile, targetPath) {
	return readFile(targetPath)
		.then(targetData => {
			if (sourceFile.isNull() || !sourceFile.contents.equals(targetData)) {
				stream.push(sourceFile);
			}
		});
}
function compareContents(stream, sourceFile, targetPath) {
	return readFile(targetPath)
		.then(targetData => {
			if (sourceFile.isNull() || !sourceFile.contents.equals(targetData)) {
				stream.push(sourceFile);
			}
		});
}
function compareContents ( stream , sourceFile , targetPath ) { return readFile ( targetPath ) . then ( targetData => { if ( sourceFile . isNull ( ) || ! sourceFile . contents . equals ( targetData ) ) { stream . push ( sourceFile ) ; } } ) ; }
Only push through files with different contents than the destination files
Only push through files with different contents than the destination files