format(pathObject) {
		let { root, dir, ext, name, base } = pathObject;

		if (base || !ext.startsWith(".")) {
			ext = "";
			if (base) name = "";
		}

		dir = dir || root;

		if (!dir.endsWith("/")) dir += "/";

		return dir + (base || name) + ext;
	}
returns a path string from an object.
@param {PathObject} pathObject