docs: def directory_is_present(self, directory_path):
          """
          check if directory 'directory_path' is present, raise IOError if it's not a directory
  
          :param directory_path: str, directory to check
          :return: True if directory exists, False if directory does not exist
          """
          p = self.p(directory_path)
          if not os.path.exists(p):
              return False
          if not os.path.isdir(p):
              raise IOError("%s is not a directory" % directory_path)
          return True