org.apache.commons.io.file

## Interface Counters.PathCounters

- Enclosing class:
    Counters

      public static interface Counters.PathCounters

  Counts files, directories, and sizes, as a visit proceeds.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `Counters.Counter` | `getByteCounter()` Gets the byte counter.
    `Counters.Counter` | `getDirectoryCounter()` Gets the directory counter.
    `Counters.Counter` | `getFileCounter()` Gets the file counter.
    `default void` | `reset()` Resets the counts to 0.

- - ### Method Detail

    - #### getByteCounter

          Counters.Counter getByteCounter()

      Gets the byte counter.
      Returns:
        the byte counter.

    - #### getDirectoryCounter

          Counters.Counter getDirectoryCounter()

      Gets the directory counter.
      Returns:
        the directory counter.

    - #### getFileCounter

          Counters.Counter getFileCounter()

      Gets the file counter.
      Returns:
        the file counter.

    - #### reset

          default void reset()

      Resets the counts to 0.

Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.