Package org.syncany.plugins.transfer.files

Examples of org.syncany.plugins.transfer.files.SyncanyRemoteFile


  }

  @Override
  public boolean testRepoFileExists() {
    try {
      File repoFile = getRemoteFile(new SyncanyRemoteFile());

      if (repoFile.exists()) {
        logger.log(Level.INFO, "testRepoFileExists: Repo file exists, list(syncany) returned one result.");
        return true;
      }
View Full Code Here


    // Clear up previous test (if test location is reused)
    cleanTestLocation(transferManager);

    // Run!
    uploadDownloadListDelete(transferManager, tempFromDir, tempToDir, SyncanyRemoteFile.class,
        new SyncanyRemoteFile[] { new SyncanyRemoteFile() });

    uploadDownloadListDelete(transferManager, tempFromDir, tempToDir, MasterRemoteFile.class, new MasterRemoteFile[] { new MasterRemoteFile() });

    uploadDownloadListDelete(transferManager, tempFromDir, tempToDir, DatabaseRemoteFile.class, new DatabaseRemoteFile[] {
        new DatabaseRemoteFile("database-A-0001"), new DatabaseRemoteFile("database-B-0002") });
View Full Code Here

  private void uploadMasterFile(File masterFile, TransferManager transferManager) throws Exception {
    transferManager.upload(masterFile, new MasterRemoteFile());
  }

  private void uploadRepoFile(File repoFile, TransferManager transferManager) throws Exception {
    transferManager.upload(repoFile, new SyncanyRemoteFile());
  }
View Full Code Here

    }

    logger.log(Level.INFO, "- Connecting to the repo was successful; now downloading repo file ...");

    // Create local .syncany directory
    File tmpRepoFile = downloadFile(transferManager, new SyncanyRemoteFile());

    if (CipherUtil.isEncrypted(tmpRepoFile)) {
      logger.log(Level.INFO, "- Repo is ENCRYPTED. Decryption necessary.");

      if (configTO.getMasterKey() == null) {
View Full Code Here

TOP

Related Classes of org.syncany.plugins.transfer.files.SyncanyRemoteFile

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.