Make listDirectory silent by default