normalize(path) {
		path = path.replace(/\.\/+/g, "./");
		path = path.replace(/\/+/g, "/");

		const resolved = [];
		const pathAr = path.split("/");

		pathAr.forEach((dir) => {
			if (dir === "..") {
				if (resolved.length) resolved.pop();
			} else if (dir === ".") {
				return;
			} else {
				resolved.push(dir);
			}
		});

		return resolved.join("/");
	}
Normalizes the given path, resolving '..' and '.' segments.
@param {string} path