Getting Dicom file paths of study from DCMTK archive

Hi all,

Currently, i am trying to download files from a PACS and then open them from ITK. I am starting a DCMQRSCP server, and using MOVESCU to download images into my local DCMQRSCP archive. However, DCMTK stores the images in a flat database with an index.dat file, however i dont know how to even use that index, its not sql?

how do i then get the file list of a study to load into itk without doing another MOVESCU command from my local archive into another folder and loading the images from that folder?

Thanks!