Class SymlinkFileTransfer

  • All Implemented Interfaces:
    FileTransfer

    public class SymlinkFileTransfer
    extends AbstractExecFileTransfer
    Local-only file transfer mechanism which makes use of soft-linking.
    Since:
    5.0
    • Constructor Detail

      • SymlinkFileTransfer

        public SymlinkFileTransfer()
    • Method Detail

      • exec

        protected void exec​(java.io.File file,
                            java.io.File location)
                     throws java.io.IOException
        Creates a symlink.
        Overrides:
        exec in class AbstractExecFileTransfer
        Parameters:
        file - File to be copied.
        location - Location to copy to.
        Throws:
        java.io.IOException
      • afterTransfer

        public void afterTransfer​(int errors,
                                  java.util.List<java.lang.String> srcFiles)
        No cleanup is needed for soft-linking.