Skip to content

Instantly share code, notes, and snippets.

@pwlin
Created June 7, 2010 04:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pwlin/428246 to your computer and use it in GitHub Desktop.
Save pwlin/428246 to your computer and use it in GitHub Desktop.
<?php
foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator(dirname(__FILE__))) as $item) {
if (!$item->isDir() || $item->isDot()) continue;
echo $item, PHP_EOL;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment