|
|
|
@ -230,8 +230,11 @@ class Encryption extends Wrapper { |
|
|
|
if (isset($this->unencryptedSize[$source])) { |
|
|
|
$this->unencryptedSize[$target] = $this->unencryptedSize[$source]; |
|
|
|
} |
|
|
|
$this->keyStorage->renameKeys($source, $target); |
|
|
|
if (dirname($source) !== dirname($target) && $this->util->isFile($target)) { |
|
|
|
$keysRenamed = $this->keyStorage->renameKeys($source, $target); |
|
|
|
if ($keysRenamed && |
|
|
|
dirname($source) !== dirname($target) && |
|
|
|
$this->util->isFile($target) |
|
|
|
) { |
|
|
|
$this->update->update($target); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -256,8 +259,11 @@ class Encryption extends Wrapper { |
|
|
|
$result = $this->storage->copy($path1, $path2); |
|
|
|
if ($result) { |
|
|
|
$target = $this->getFullPath($path2); |
|
|
|
$this->keyStorage->copyKeys($source, $target); |
|
|
|
if (dirname($source) !== dirname($target) && $this->util->isFile($target)) { |
|
|
|
$keysCopied = $this->keyStorage->copyKeys($source, $target); |
|
|
|
if ($keysCopied && |
|
|
|
dirname($source) !== dirname($target) && |
|
|
|
$this->util->isFile($target) |
|
|
|
) { |
|
|
|
$this->update->update($target); |
|
|
|
} |
|
|
|
} |
|
|
|
|