Class AbstractRemoteFileOperations

    • Constructor Detail

      • AbstractRemoteFileOperations

        public AbstractRemoteFileOperations()
    • Method Detail

      • renameLocal

        protected String renameLocal​(String source,
                                     String target)
        Renames a local file.
        Parameters:
        source - the source file (old)
        target - the target file (new)
        Returns:
        null if successful, otherwise error message
      • renameRemote

        protected abstract String renameRemote​(String source,
                                               String target)
        Renames a remote file.
        Parameters:
        source - the source file (old)
        target - the target file (new)
        Returns:
        null if successful, otherwise error message
      • rename

        public String rename​(String source,
                             String target)
        Renames a file.
        Specified by:
        rename in interface FileOperations
        Parameters:
        source - the source file (old)
        target - the target file (new)
        Returns:
        null if successful, otherwise error message
      • deleteLocal

        protected String deleteLocal​(String file)
        Deletes a local file.
        Parameters:
        file - the file to delete
        Returns:
        null if successful, otherwise error message
      • deleteRemote

        protected abstract String deleteRemote​(String file)
        Deletes a remote file.
        Parameters:
        file - the file to delete
        Returns:
        null if successful, otherwise error message
      • delete

        public String delete​(String file)
        Deletes a file.
        Specified by:
        delete in interface FileOperations
        Parameters:
        file - the file to delete
        Returns:
        null if successful, otherwise error message
      • mkdirLocal

        protected String mkdirLocal​(String dir)
        Creates the local directory.
        Parameters:
        dir - the directory to create
        Returns:
        null if successful, otherwise error message
      • mkdirRemote

        protected abstract String mkdirRemote​(String dir)
        Creates the remote directory.
        Parameters:
        dir - the directory to create
        Returns:
        null if successful, otherwise error message
      • mkdir

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