$dir, 'name' => pathinfo($dir, PATHINFO_BASENAME), 'parent' => pathinfo($dir, PATHINFO_DIRNAME), ]); } }