Interface FileInfo<F>

Type Parameters:
F - The target protocol file type.
All Known Implementing Classes:
AbstractFileInfo, FtpFileInfo, SftpFileInfo

public interface FileInfo<F>
Represents a remote file info - an abstraction over the underlying implementation.
Since:
2.1
Author:
Gary Russell
  • Method Details

    • isDirectory

      boolean isDirectory()
      Returns:
      true if the remote file is a directory
    • isLink

      boolean isLink()
      Returns:
      true if the remote file is a link
    • getSize

      long getSize()
      Returns:
      the size of the remote file
    • getModified

      long getModified()
      Returns:
      the modified time of the remote file
    • getFilename

      String getFilename()
      Returns:
      the name of the remote file
    • getRemoteDirectory

      String getRemoteDirectory()
      Returns:
      the remote directory in which the file resides
    • getPermissions

      String getPermissions()
      Returns:
      a string representing the permissions of the remote file (e.g. -rw-r--r--).
    • getFileInfo

      F getFileInfo()
      Returns:
      the actual implementation from the underlying library, more sophisticated access is needed.