mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
Fix duplicate .enc files
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
67ddd0ba38
commit
c7e53633fc
2 changed files with 2 additions and 1 deletions
|
@ -738,6 +738,8 @@ public class UploadFileOperation extends SyncOperation {
|
||||||
token = null;
|
token = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
encryptedTempFile.delete();
|
||||||
}
|
}
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
Log_OC.d(TAG, mFile.getStoragePath() + " not exists anymore");
|
Log_OC.d(TAG, mFile.getStoragePath() + " not exists anymore");
|
||||||
|
|
|
@ -568,7 +568,6 @@ public final class EncryptionUtils {
|
||||||
File encryptedFile = new File(file.getAbsolutePath() + ".enc");
|
File encryptedFile = new File(file.getAbsolutePath() + ".enc");
|
||||||
encryptFileWithGivenCipher(file, encryptedFile, cipher);
|
encryptFileWithGivenCipher(file, encryptedFile, cipher);
|
||||||
String authenticationTagString = getAuthenticationTag(cipher);
|
String authenticationTagString = getAuthenticationTag(cipher);
|
||||||
Log_OC.d("", "KAVGAM!!: " + authenticationTagString);
|
|
||||||
return new EncryptedFile(encryptedFile, authenticationTagString);
|
return new EncryptedFile(encryptedFile, authenticationTagString);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue