Class FtpFileOperations

    • Field Detail

      • m_Client

        protected org.apache.commons.net.ftp.FTPClient m_Client
        the FTP client to use.
    • Constructor Detail

      • FtpFileOperations

        public FtpFileOperations()
    • Method Detail

      • setClient

        public void setClient​(org.apache.commons.net.ftp.FTPClient value)
        Sets the FTP client to use.
        Parameters:
        value - the client
      • getClient

        public org.apache.commons.net.ftp.FTPClient getClient()
        Returns the FTP client in use.
        Returns:
        the client, null if none set
      • isSupported

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

        public String copy​(String source,
                           String target)
        Copies a file.
        Parameters:
        source - the source file
        target - the target file
        Returns:
        null if successful, otherwise error message
      • move

        public String move​(String source,
                           String target)
        Moves a file.
        Parameters:
        source - the source file
        target - the target file
        Returns:
        null if successful, otherwise error message
      • renameRemote

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