add selectMode

use FileUtils.setSelectMode to determine file or directory to select