1
0
mirror of https://github.com/danog/file.git synced 2024-11-30 04:19:39 +01:00

Merge pull request #4 from kelunik/statcache

Fix clearstatcache signature
This commit is contained in:
Bob Weinand 2015-10-25 14:39:08 +01:00
commit fe2387bb21

View File

@ -68,7 +68,7 @@ class BlockingDriver implements Driver {
\error_get_last()["message"] \error_get_last()["message"]
)); ));
} else { } else {
\clearstatcache($path); \clearstatcache(true, $path);
return new Success($size); return new Success($size);
} }
} }
@ -87,7 +87,7 @@ class BlockingDriver implements Driver {
return new Success(false); return new Success(false);
} }
$isDir = @\is_dir($path); $isDir = @\is_dir($path);
\clearstatcache($path); \clearstatcache(true, $path);
return new Success($isDir); return new Success($isDir);
} }
@ -106,7 +106,7 @@ class BlockingDriver implements Driver {
return new Success(false); return new Success(false);
} }
$isFile = @\is_file($path); $isFile = @\is_file($path);
\clearstatcache($path); \clearstatcache(true, $path);
return new Success($isFile); return new Success($isFile);
} }
@ -124,7 +124,7 @@ class BlockingDriver implements Driver {
)); ));
} }
$mtime = @\filemtime($path); $mtime = @\filemtime($path);
\clearstatcache($path); \clearstatcache(true, $path);
return new Success($mtime); return new Success($mtime);
} }
@ -142,7 +142,7 @@ class BlockingDriver implements Driver {
)); ));
} }
$atime = @\fileatime($path); $atime = @\fileatime($path);
\clearstatcache($path); \clearstatcache(true, $path);
return new Success($atime); return new Success($atime);
} }
@ -160,7 +160,7 @@ class BlockingDriver implements Driver {
)); ));
} }
$ctime = @\filectime($path); $ctime = @\filectime($path);
\clearstatcache($path); \clearstatcache(true, $path);
return new Success($ctime); return new Success($ctime);
} }