public void setFolders(List<String> folders) throws DiskSpaceInsufficientException {
    boolean hasSpace = false;
    for (String folder : folders) {
      if (JVMCommonUtils.hasSpace(folder)) {
        hasSpace = true;
        break;
      }
    }
    if (!hasSpace) {
      LOGGER.error("Disk space is insufficient, change system mode to read-only");
      CommonDescriptor.getInstance().getConfig().setNodeStatus(NodeStatus.ReadOnly);
      throw new DiskSpaceInsufficientException(folders);
    }

    this.folders = folders;
  }
To init folders. Do not recommend to overwrite. This method guarantees that at least one folder
has available space.

@param folders the folders from conf
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/rescon/disk/strategy/DirectoryStrategy.java