private void cleanAndCheckout() throws Exception { // Clean configured storage FileCommons.eraseFolder(mSyncConfig.getStoragePath(mActivity)); // Force direct Checkout SyncServices.checkout(mActivity, mSyncHandler, mSyncConfig); }
public void setStorageSubfolder(String storageSubfolder) { if (storageSubfolder == null || storageSubfolder.equals("")) { Date currentDate = new Date(System.currentTimeMillis()); storageSubfolder = "syncmod_" + FileCommons.md5(currentDate.toString()); } this.storageSubfolder = storageSubfolder; }