From d369095fc030b4bc2207549505784990f14ab28d Mon Sep 17 00:00:00 2001 From: Marc Sallaberremborde Date: Tue, 21 Dec 2021 16:09:45 +0100 Subject: [PATCH] Fix a recursive find of directory argument being itself recursively browsed --- src/Proxy/TagAwareStore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Proxy/TagAwareStore.php b/src/Proxy/TagAwareStore.php index d3153b0f..83917f27 100644 --- a/src/Proxy/TagAwareStore.php +++ b/src/Proxy/TagAwareStore.php @@ -169,7 +169,7 @@ static function ($id) {return 'l' . $id;}, */ protected function purgeAllContent() { - $this->getFilesystem()->remove((new Finder())->in($this->root)); + $this->getFilesystem()->remove((new Finder())->in($this->root)->depth(0)); } /**