Skip to content

Commit 40ba290

Browse files
committed
clean the code from dead functions
1 parent abb4620 commit 40ba290

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

public_html/filesList.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
// Const
4+
$gitPathPre = "https://github.com/greenido/AppsScriptBests/tree/master/public_html/AppsScript";
5+
$fullList = array();
6+
$mdFileName = "ListOfScripts.md";
7+
8+
//
9+
// Start the party
10+
//
11+
$path = 'AppsScript';
12+
exec("find . -follow", $files);
13+
print_r($files);
14+
15+
foreach ($files as $name) {
16+
if (strpos($name, "AppsScript/" ) > 0) {
17+
if ( !strpos($name, ".DS_Store") ) {
18+
$name = str_replace("./AppsScript/", "", $name);
19+
$fName = "* [$name](" . $gitPathPre . "/" . $name . ")\n";
20+
array_push($fullList, $fName );
21+
file_put_contents($mdFileName, $fName, FILE_APPEND);
22+
}
23+
}
24+
}
25+
echo "\n\n=== list of files: \n";
26+
print_r($fullList);
27+

0 commit comments

Comments
 (0)