Indexing a Disk Image within a Folder

I have a database which is an index to my Documents folder. Within the Documents folder is a sparse disk image (.dmg file) containing archived documents such as pdf files and old email messages. The disk image is password protected for mounting.

How can I ensure that I see documents on the .dmg file when I open the database. As it is, if I search for a document that I know is within the disk image then it does not show up.

Did you index the contents of the mounted disk image too?

That did it. Thanks. I thought that DT might have ‘seen’ the files within the disk image itself.

The disk image is presumably encrypted. So DT better not see the contents! Otherwise, the protection would be all for nothing.