lib/haychtml.js
function handleDirectoryOrFile (filename) {
		var absolutePath = path.join(dir, recursePath, filename),
			relativePath = path.join(recursePath, filename);

		if (fs.statSync(absolutePath).isDirectory()) {
			find(dir, extension, relativePath).forEach(addFileToOutput);
		} else {
			addFileToOutput(new File(relativePath));
		}
	}
function handleDirectoryOrFile (filename) {
		var absolutePath = path.join(dir, recursePath, filename),
			relativePath = path.join(recursePath, filename);

		if (fs.statSync(absolutePath).isDirectory()) {
			find(dir, extension, relativePath).forEach(addFileToOutput);
		} else {
			addFileToOutput(new File(relativePath));
		}
	}
function handleDirectoryOrFile ( filename ) { var absolutePath = path . join ( dir , recursePath , filename ) , relativePath = path . join ( recursePath , filename ) ; if ( fs . statSync ( absolutePath ) . isDirectory ( ) ) { find ( dir , extension , relativePath ) . forEach ( addFileToOutput ) ; } else { addFileToOutput ( new File ( relativePath ) ) ; } }
If the path is a file, create a File object and add it to the output array.
If the path is a file create a File object and add it to the output array .