- // try to find existing file and bind it with current account
+ // try to find existing file and bind it with current account; - with the current update of SynchronizeFolderOperation, this won't be necessary anymore after a full synchronization of the account
File f = new File(FileStorageUtils.getDefaultSavePathFor(mAccount.name, file));
File f = new File(FileStorageUtils.getDefaultSavePathFor(mAccount.name, file));
- if (f.exists())
+ if (f.exists()) {
file.setStoragePath(f.getAbsolutePath());
file.setStoragePath(f.getAbsolutePath());
+ file.setLastSyncDateForData(f.lastModified());
+ }
}
}
file.setFileLength(c.getLong(c
}
}
file.setFileLength(c.getLong(c
@@ -401,8+397,10 @@ public class FileDataStorageManager implements DataStorageManager {