|Lister creates a file
sequencer to list files. The results are stored in a Data::Chunk. The inner
loop fills the chunk with maximum MAX_FILES_TO_LIST at a time and passes it
to the sink. The outer loop iterates until the whole directory is listed,
after which Lister is done. It will then wait for the kill from the client.
|Lister may be interrupted
prematurely by the client, in which case the IsDying predicate returns true
and the thread exits.