[BUGFIX] fix listFiles function 

Hi Tim,

listFiles did not list all files for obscure reason...

Best regards

Eric