feature(commander) getDirContent: add checkType