You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Possible, but because my webdev experience doesn't go beyond stack overflow copy-paste, there's 3 places to make modifications to suppress subdirectory stuff
--- ../index.php 2022-06-22 17:03:19.000000000 -0500+++ index.php 2022-06-22 17:22:55.000000000 -0500@@ -162,6 +162,8 @@
foreach ( $dir as $node ) {
if (strpos($node->getFilename(), '.php') !== false) continue;
if( $node->isDot() ) continue;
+ if ( $theParent != "#" ) continue;+ if ( $node->isDir() ) continue;
if ( $node->isDir()) fillArrayWithFileNodes( new DirectoryIterator( $node->getPathname() ), $node->getPathname() );
$tmp = array(
@@ -182,12 +184,16 @@
RecursiveIteratorIterator::CATCH_GET_CHILD
);
$paths = array('.');
-foreach ($iter as $path => $dir) $paths[] = $path;+foreach ($iter as $path => $dir) {+ if ( substr_count($path, '/') > 1 ) continue;+ $paths[] = $path;+}
// get number of directories
$num_directories = 0;
foreach ( (new DirectoryIterator('.')) as $node ) {
if( $node->isDot() ) continue;
+ if ( $node->isDir()) continue;
if ( $node->isDir()) $num_directories += 1;
}
?>
I like putting the
index.php
in a folder with other folders. Is it possible for a patter likefold1/blah*
to only matchblah*
insidefold1
?The text was updated successfully, but these errors were encountered: