Merge pull request #2885 from FlorinPeter/files_encryption

fix performance issues
This commit is contained in:
Sam Tuke 2013-04-16 04:25:59 -07:00
commit b4dd6ae36c
1 changed files with 5 additions and 0 deletions

View File

@ -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' ) ) {