fixing unencrypted file size
This commit is contained in:
parent
a74ee67476
commit
9d8c07850d
|
@ -88,8 +88,11 @@ class Encryption extends Wrapper {
|
||||||
|
|
||||||
$info = $this->getCache()->get($path);
|
$info = $this->getCache()->get($path);
|
||||||
|
|
||||||
if (isset($this->unencryptedSize[$fullPath]) && isset($info['fileid'])) {
|
if (isset($this->unencryptedSize[$fullPath])) {
|
||||||
$size = $this->unencryptedSize[$fullPath];
|
$size = $this->unencryptedSize[$fullPath];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isset($info['fileid'])) {
|
||||||
$info['encrypted'] = true;
|
$info['encrypted'] = true;
|
||||||
$info['size'] = $size;
|
$info['size'] = $size;
|
||||||
$this->getCache()->put($path, $info);
|
$this->getCache()->put($path, $info);
|
||||||
|
|
Loading…
Reference in New Issue