public static function getFileHash($file, $method = 'sha1') {
		if ($method === 'md5') {
			return md5_file($file);
		}
		if ($method === 'sha1') {
			return sha1_file($file);
		}

		throw new InvalidArgumentException(sprintf('Invalid hash method "%s" provided!', $method));
	}