Class RemoteToRemoteFileOperations

    • Constructor Detail

      • RemoteToRemoteFileOperations

        public RemoteToRemoteFileOperations()
    • Method Detail

      • setSource

        public void setSource​(RemoteFileOperations value)
        Sets the source file operations.
        Parameters:
        value - the source
      • getSource

        public RemoteFileOperations getSource()
        Returns the source file operations.
        Returns:
        the source
      • setTarget

        public void setTarget​(RemoteFileOperations value)
        Sets the target file operations.
        Parameters:
        value - the target
      • getTarget

        public RemoteFileOperations getTarget()
        Returns the target file operations.
        Returns:
        the target
      • 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
      • rename

        public String rename​(String source,
                             String target)
        Renames a file. Uses getSource().
        Parameters:
        source - the source file (old)
        target - the target file (new)
        Returns:
        null if successful, otherwise error message
      • delete

        public String delete​(String file)
        Deletes a file. Uses getSource().
        Parameters:
        file - the file to delete
        Returns:
        null if successful, otherwise error message
      • mkdir

        public String mkdir​(String dir)
        Creates the directory.
        Parameters:
        dir - the directory to create
        Returns:
        null if successful, otherwise error message