IOHelper.checkFile()/checkDirectory()