DIR not working w large files?

Have been trying to use LS’s DIR$ to loop through all dbs in a folder (server side). I noticed quite early that some databases didn’t show up, even with a simple loop and print agent.

Having spent some hours trying to figure out why, the only reason I can find is that dbs larger than 1GB is skipped.

Any thoughts on this?