Since the ace2 are nested with the cartographer directory can I creat a mod that and have access to the lib without having to install in them to the root addon directory? will this conflict with the ones that cartographer already have? what is the best way to deal with this?
Depends on which library and which version of Cartographer you are talking about (there's a Rock version and a Ace2 version).
If Cartographer uses libraryA, and your mod sets Cartographer as a required dependency, then its safe to assume libraryA will exist. This assumption will only break if the addon changes frameworks or changes the libraries that it uses.
so the best way to deal with this is to make carto a dep... and maybe have it check the version to ensure the libs that I am trying to access are indeed there I part of my mod would need cartographer to be installed
If your mod need *cartographer* that's one thing. If it only needs a lib or two that Cartographer also happens to have, you should probably just include those libs as dependencies or as embeds (or both).