showDir is true by default