Class SmbFileOperations

    • Field Detail

      • m_Share

        protected String m_Share
        the share to access.
      • m_DiskShare

        protected transient com.hierynomus.smbj.share.DiskShare m_DiskShare
        the diskshare instance.
    • Constructor Detail

      • SmbFileOperations

        public SmbFileOperations()
    • Method Detail

      • cleanUpSmb

        protected void cleanUpSmb()
        Cleans up SMB resources.
      • getDiskShare

        protected com.hierynomus.smbj.share.DiskShare getDiskShare()
        Returns the disk share to use.
        Returns:
        the share
      • setProvider

        public void setProvider​(SMBSessionProvider value)
        Sets the authentication provider to use.
        Parameters:
        value - the provider
      • getProvider

        public SMBSessionProvider getProvider()
        Returns the authentication provider in use.
        Returns:
        the provider, null if none set
      • setShare

        public void setShare​(String value)
        Sets the share to access.
        Parameters:
        value - the share
      • getShare

        public String getShare()
        Returns the share to access.
        Returns:
        the share
      • isSupported

        public boolean isSupported​(Operation op)
        Checks whether the given operation is supported.
        Parameters:
        op - the operation to check
        Returns:
        true if supported
      • renameRemote

        protected String renameRemote​(String source,
                                      String target)
        Renames a remote file/dir.
        Specified by:
        renameRemote in class AbstractRemoteFileOperations
        Parameters:
        source - the source file/dir (old)
        target - the target file/dir (new)
        Returns:
        null if successful, otherwise error message
      • isDirRemote

        protected boolean isDirRemote​(String path)
        Checks whether the remote path is a directory.
        Specified by:
        isDirRemote in class AbstractRemoteFileOperations
        Parameters:
        path - the path to check
        Returns:
        true if path exists and is a directory