Interface FileInfo

All Known Implementing Classes:
FileInfoDTO

public interface FileInfo
Represents metadata about a single file or directory within a fileset.

Implementations of this interface provide access to the basic attributes of a fileset entry, including its name, type (file vs. directory), size, last-modified timestamp, and its logical path within the enclosing fileset.

  • Method Details

    • name

      String name()
      Returns:
      The filename or directory name of file object.
    • isDir

      boolean isDir()
      Returns:
      Whether this is a directory (true).
    • size

      long size()
      Returns:
      The file size in bytes (0 if directory).
    • lastModified

      long lastModified()
      Returns:
      The last modification time as an Instant.
    • path

      String path()
      Returns:
      The full path of the file or directory within the fileset.