Skip to content

Commit

Permalink
Also cache empty directories
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Mar 20, 2017
1 parent c5ee196 commit 93eec67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CachedAdapter.php
Expand Up @@ -248,7 +248,7 @@ public function listContents($directory = '', $recursive = false)

$result = $this->adapter->listContents($directory, $recursive);

if ($result) {
if ($result !== false) {
$this->cache->storeContents($directory, $result, $recursive);
}

Expand Down

0 comments on commit 93eec67

Please sign in to comment.