doStat = (fs, filename, callback) => {
	if ("lstat" in fs) {
		/** @type {NonNullable<OutputFileSystem["lstat"]>} */
		(fs.lstat)(filename, callback);
	} else {
		fs.stat(filename, callback);
	}
}
@param {OutputFileSystem} fs filesystem
@param {string} filename path to file
@param {StatsCallback} callback callback for provided filename
@returns {void}