Package de.grey.ownsync.action

Examples of de.grey.ownsync.action.CopyAction


    }

    private FileAction getCopyNewerAction(FileState fileStateA, FileState fileStateB)
    {
        if (fileStateA.isNewer(fileStateB))
            return new CopyAction(fileStateA, folderStateA, fileStateB, folderStateB, CopyAction.FROM_A_TO_B);
        if (fileStateA.isOlder(fileStateB))
            return new CopyAction(fileStateA, folderStateA, fileStateB, folderStateB, CopyAction.FROM_B_TO_A);
       
        return null;
    }
View Full Code Here


    }

    private FileAction getCopyNewerAction(FileState fileStateA, FileState fileStateB)
    {
        if (fileStateA.isNewer(fileStateB))
            return new CopyAction(fileStateA, folderStateA, fileStateB, folderStateB, CopyAction.FROM_A_TO_B);
        if (fileStateA.isOlder(fileStateB))
            return new CopyAction(fileStateA, folderStateA, fileStateB, folderStateB, CopyAction.FROM_B_TO_A);
       
        return null;
    }
View Full Code Here

TOP

Related Classes of de.grey.ownsync.action.CopyAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.