Skip to content

Commit

Permalink
Fixed #1035: clear stat cache before getting metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Jun 18, 2019
1 parent b50e52d commit 6f2211c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Adapter/Local.php
Expand Up @@ -297,6 +297,8 @@ public function listContents($directory = '', $recursive = false)
public function getMetadata($path)
{
$location = $this->applyPathPrefix($path);
clearstatcache($location);
filesize()

This comment has been minimized.

Copy link
@frankdejonge

frankdejonge Jun 18, 2019

Author Member

corrected in next commit

$info = new SplFileInfo($location);

return $this->normalizeFileInfo($info);
Expand Down

0 comments on commit 6f2211c

Please sign in to comment.