supported diretory selection.
bugfix: printCachestat is invalid.