code: protected File[] listSegmentFiles() {
          File segDir = new File(_segHomePath);
          File[] segFiles = segDir.listFiles(new FileFilter() {
              @Override
              public boolean accept(File filePath) {
                  String fileName = filePath.getName();
                  if (fileName.matches("^[0-9]+\\.seg$")) {
                      return true;
                  }
                  return false;
              }
          });
  
          if (segFiles == null) {
              segFiles = new File[0];
          } else if (segFiles.length > 0) {
              Arrays.sort(segFiles, new Comparator<File>() {
                  @Override
                  public int compare(File f1, File f2) {
                      int segId1 = Integer.parseInt(f1.getName().substring(0, f1.getName().indexOf('.')));
                      int segId2 = Integer.parseInt(f2.getName().substring(0, f2.getName().indexOf('.')));
                      return (segId1 < segId2) ? -1 : ((segId1 == segId2) ? 0 : 1);
                  }
              });
          }
  
          return segFiles;
      }
docs: Lists all the segment files managed by this SegmentManager.