Package messages

Class FileInfo

java.lang.Object
messages.FileInfo
All Implemented Interfaces:
Serializable

public class FileInfo extends Object implements Serializable
A model describing the properties of the file.
See Also:
  • Field Details

    • filename

      private String filename
      The file name.
    • type

      private FileInfo.FileType type
      File type.
    • size

      private long size
      File size in bytes.
    • lastModified

      private LocalDateTime lastModified
      The time of the last change.
  • Constructor Details

    • FileInfo

      public FileInfo(Path path)
      The constructor takes a file path object and, processing it, fills the model with properties.
      Parameters:
      path - The path to the file.