lib/block.js
function validateCache(path, cache) {
	const
		{mtime} = fs.statSync(path);

	return {
		mtime,
		fromCache: Boolean(cache[path] && Sugar.Date.is(mtime, cache[path].mtime))
	};
}
function validateCache(path, cache) {
	const
		{mtime} = fs.statSync(path);

	return {
		mtime,
		fromCache: Boolean(cache[path] && Sugar.Date.is(mtime, cache[path].mtime))
	};
}
function validateCache ( path , cache ) { const { mtime } = fs . statSync ( path ) ; return { mtime , fromCache : Boolean ( cache [ path ] && Sugar . Date . is ( mtime , cache [ path ] . mtime ) ) } ; }
Validates a file by the specified path and return meta information

@param {string} path
@param {!Object} cache - cache object
@returns {{mtime: !Object, fromCache: boolean}}
Validates a file by the specified path and return meta information