<?php
$iterator = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator('./'),
RecursiveIteratorIterator::SELF_FIRST);
foreach($iterator as $file) {
if($file->isDir()) {
echo "\n" . strtoupper($file->getRealpath()), PHP_EOL;
}
}
?>
The above is what I have so far. I am looking to go through dirs and also sub-dirs and see which ones are write-able.