-
Notifications
You must be signed in to change notification settings - Fork 0
/
forkls.php
44 lines (43 loc) · 877 Bytes
/
forkls.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/*
File: forkls.php
Desc: Create INDEX files for any subdirectories on this list that
don't have one.
Date: 2023-06-16
Auth: sumkittehz.codes
*/
/*
*/
$directories = array(
"Audio",
"awesome-portfolio-demo",
"Clocks",
"Documentation",
"Effects",
"FlexBoxEx",
"flexbox-vers",
"Fonts",
"gallery-ex",
"grid-layouts",
"Images",
"lib",
"mud",
"RefEx",
"SVG",
"template",
"voice-change-o-matic",
"webaudio-examples-main",
"WebGL-Fluid-Simulation",
"ytex"
);
foreach ($directories as $dir) {
print "./$dir/\n";
$dirfiles = array( scandir("./$dir") );
foreach ( array ("php","html","js","xml") as $ext ) {
if ( file_exists( "./$dir/index.$ext") ) {
$indexfile = "./$dir/index.$ext\n";
print "Found $indexfile\n";
}
}
}
?>