コード例 #1
0
  public static SyncFile resyncFolder(SyncFile syncFile) throws Exception {
    setStatuses(syncFile, SyncFile.STATE_SYNCED, SyncFile.UI_EVENT_NONE);

    // Remote

    FileEventUtil.resyncFolder(syncFile.getSyncAccountId(), syncFile);

    return syncFile;
  }
コード例 #2
0
  public static SyncFile unsyncFolder(String filePathName) throws Exception {
    SyncFile syncFile = SyncFileService.fetchSyncFile(filePathName);

    if (syncFile == null) {
      return addSyncFile(
          null, null, null, filePathName, null, null, 0, 0, SyncFile.STATE_UNSYNCED, 0, null);
    }

    setStatuses(syncFile, SyncFile.STATE_UNSYNCED, SyncFile.UI_EVENT_NONE);

    return syncFile;
  }