Merge pull request #2885 from FlorinPeter/files_encryption
fix performance issues
This commit is contained in:
commit
b4dd6ae36c
|
@ -224,6 +224,11 @@ class Stream {
|
|||
*/
|
||||
public function getKey() {
|
||||
|
||||
// fix performance issues
|
||||
if(isset($this->keyfile) && isset($this->encKeyfile)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// If a keyfile already exists for a file named identically to
|
||||
// file to be written
|
||||
if ( $this->rootView->file_exists( $this->userId . '/'. 'files_encryption' . '/' . 'keyfiles' . '/' . $this->relPath . '.key' ) ) {
|
||||
|
|
Loading…
Reference in New Issue