Tracking documents that have been exported

In project explorer, if I export a file to some random folder on my local drive, how can I obtain said file’s information? I.e.  projid, docid, and status of exported,  from just the exported path?

 aaApi_GetProjectIdFromFileName2 seems to only search if there’s a valid PW_WORKDIR in the path

 How does explorer know where to reimport the files from? I assume the exported file path is stored somewhere.

Cheers Dan