Only clear the realpath cache
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
This commit is contained in:
parent
6f72871ca5
commit
be73fd90fc
|
@ -142,8 +142,8 @@ class Local extends \OC\Files\Storage\Common {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function stat($path) {
|
public function stat($path) {
|
||||||
clearstatcache();
|
|
||||||
$fullPath = $this->getSourcePath($path);
|
$fullPath = $this->getSourcePath($path);
|
||||||
|
clearstatcache(true, $fullPath);
|
||||||
$statResult = stat($fullPath);
|
$statResult = stat($fullPath);
|
||||||
if (PHP_INT_SIZE === 4 && !$this->is_dir($path)) {
|
if (PHP_INT_SIZE === 4 && !$this->is_dir($path)) {
|
||||||
$filesize = $this->filesize($path);
|
$filesize = $this->filesize($path);
|
||||||
|
@ -158,7 +158,7 @@ class Local extends \OC\Files\Storage\Common {
|
||||||
*/
|
*/
|
||||||
public function getMetaData($path) {
|
public function getMetaData($path) {
|
||||||
$fullPath = $this->getSourcePath($path);
|
$fullPath = $this->getSourcePath($path);
|
||||||
clearstatcache();
|
clearstatcache(true, $fullPath);
|
||||||
$stat = @stat($fullPath);
|
$stat = @stat($fullPath);
|
||||||
if (!$stat) {
|
if (!$stat) {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue