|
|
|
@ -55,8 +55,11 @@ class FileInfo implements \OCP\Files\FileInfo, \ArrayAccess { |
|
|
|
|
public function offsetGet($offset) { |
|
|
|
|
if ($offset === 'type') { |
|
|
|
|
return $this->getType(); |
|
|
|
|
} elseif (isset($this->data[$offset])) { |
|
|
|
|
return $this->data[$offset]; |
|
|
|
|
} else { |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
return $this->data[$offset]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -154,7 +157,7 @@ class FileInfo implements \OCP\Files\FileInfo, \ArrayAccess { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function getData(){ |
|
|
|
|
public function getData() { |
|
|
|
|
return $this->data; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|