Skip to content

Commit 33fd3b2

Browse files
committed
Updated this script so it also works in a child folder.
1 parent 65ebe5a commit 33fd3b2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Eclipse update site/WebContent/download.php

+11-1
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,18 @@ function ListFileNames( $prefix)
3535
$files[] = $file; // put in array.
3636
}
3737
}
38-
rsort($files); // sort.
3938
closedir($dir);
39+
$location="../download/product";
40+
$dir = opendir($location);
41+
while(false != ($file = readdir($dir)))
42+
{
43+
if(($file != ".") and ($file != "..") and ($file != "index.php"))
44+
{
45+
$files[] = $file; // put in array.
46+
}
47+
}
48+
closedir($dir);
49+
rsort($files); // sort.
4050

4151
foreach($files as $file)
4252
{

0 commit comments

Comments
 (0)