fix listFiles function

it did not list all files for obscure reason...

Signed-off-by:Eric Villard <dev@eviweb.fr>
Merge pull request #3 from eviweb/fix-listfiles

[BUGFIX] fix listFiles function