wrong storage location

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2020-07-27 15:23:29 +02:00
parent 17a19bd4be
commit 8966803e39
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7
2 changed files with 2 additions and 2 deletions

View file

@ -535,7 +535,7 @@ public class RefreshFolderOperation extends RemoteOperation {
localFile.getModificationTimestampAtLastSyncForData()
);
if (localFile.isEncrypted()) {
updatedFile.setStoragePath(mLocalFolder.getDecryptedRemotePath() + localFile.getFileName());
updatedFile.setStoragePath(mLocalFolder.getStoragePath() + PATH_SEPARATOR + localFile.getFileName());
} else {
updatedFile.setStoragePath(localFile.getStoragePath());
}

View file

@ -98,7 +98,7 @@ public final class FileStorageUtils {
* file.
*/
public static String getDefaultSavePathFor(String accountName, OCFile file) {
return getSavePath(accountName) + file.getStoragePath();
return getSavePath(accountName) + file.getDecryptedRemotePath();
}
/**