Class SyncTask

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class SyncTask
    extends CopyTask
    A task that synchronises the destination folder to look exactly like the source folder (or folders).
    • Constructor Detail

      • SyncTask

        public SyncTask()
    • Method Detail

      • handleMissingSourceFile

        protected void handleMissingSourceFile​(FileObject destFile)
                                        throws java.lang.Exception
        Handles a destination for which there is no corresponding source file.
        Overrides:
        handleMissingSourceFile in class AbstractSyncTask
        Parameters:
        destFile - The existing destination file.
        Throws:
        java.lang.Exception - Implementation can throw any Exception.
      • detectMissingSourceFiles

        protected boolean detectMissingSourceFiles()
        Check if this task cares about destination files with a missing source file.
        Overrides:
        detectMissingSourceFiles in class AbstractSyncTask
        Returns:
        True if missing file is detected.