isDir() && '.git' === $file->getBasename() ) { echo $file->getPath() . "\n"; exec( "cd {$file->getPath()} && git gc --aggressive" ); } }