Skip to content

Commit c2ff6c7

Browse files
authored
Merge pull request #11 from binwiederhier/ls-fix
Fix ls() call caching when called multiple times in a row!
2 parents b4776b1 + 325e15e commit c2ff6c7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Client.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,9 @@ public function listDir($key = '/', $recursive = false)
365365
*/
366366
public function ls($key = '/', $recursive = false)
367367
{
368+
$this->values = array();
369+
$this->dirs = array();
370+
368371
try {
369372
$data = $this->listDir($key, $recursive);
370373
} catch (EtcdException $e) {

0 commit comments

Comments
 (0)