Skip to content

Commit

Permalink
Update Module.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dextermb authored Jun 29, 2018
1 parent 9f938db commit 97eea76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/LangleyFoxall/Modules/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ public function config()
*/
public function delete()
{
$iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($this->getPath(), FilesystemIterator::SKIP_DOTS), \RecursiveIteratorIterator::CHILD_FIRST);
$inner = new \RecursiveDirectoryIterator($this->getPath(), \FilesystemIterator::SKIP_DOTS);
$iterator = new \RecursiveIteratorIterator($inner, \RecursiveIteratorIterator::SELF_FIRST, \RecursiveIteratorIterator::CATCH_GET_CHILD);

/** @var SplFileInfo $item */
foreach ($iterator as $item) {
Expand Down

0 comments on commit 97eea76

Please sign in to comment.