Class SmbFileInfo

java.lang.Object
org.springframework.integration.file.remote.AbstractFileInfo<jcifs.smb.SmbFile>
org.springframework.integration.smb.session.SmbFileInfo
All Implemented Interfaces:
Comparable<FileInfo<jcifs.smb.SmbFile>>, FileInfo<jcifs.smb.SmbFile>

public class SmbFileInfo extends AbstractFileInfo<jcifs.smb.SmbFile>
A FileInfo implementation for SMB.
Since:
6.0
Author:
Gregory Bragg
  • Constructor Details

    • SmbFileInfo

      public SmbFileInfo(jcifs.smb.SmbFile smbFile)
  • Method Details

    • isDirectory

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

      public boolean isLink()
      Symbolic links are currently not supported in the JCIFS v2.x.x dependent library, so this method will always return false.
      Returns:
      false
    • getSize

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

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

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

      public String getPermissions()
      An Access Control Entry (ACE) is an element in a security descriptor such as those associated with files and directories. The Windows OS determines which users have the necessary permissions to access objects based on these entries.
      Returns:
      a list of Access Control Entry (ACE) objects representing the security descriptor associated with this file or directory.
    • getFileInfo

      public jcifs.smb.SmbFile getFileInfo()
      Returns:
      the actual implementation from the underlying library, more sophisticated access is needed.