Open gucio321 opened 3 years ago
the other solution is using PHP, but currenlty no idea, how to use it with sphinx
here is the php code:
<?php
$dir = "./path/to/directory";
$cdir = scandir($dir);
foreach ($cdir as $key => $value)
{
print "<h1><a href=\"" . $dir . "/" . $value . "\" download=\"" . $value . "\" > #" . $value . "</a></h1><hr>";
}
return $result;
?>
well, lets drop this PHP idea. IIRC php would work on gh, but it will make local development much more difficult.
Atm, I can imagine, that
var fs = require('fs');
var files = fs.readdirSync('/path/to/directory');
may work, however (as long as require
is node.js command) we cannot use it.
For now I found this repo: https://github.com/jvilk/BrowserFS and will work on introduction.
Hi everyone! Welcome to my physic-exercises website! I've a plan, to add a section when I can add and share certain files. It could look as follows:
shared
directory which can be soft-linked toassets/shared/data
data
dir and prints it in a table My first idea is to use JavaScript (js) to do so withraw:: html
sphinx instuction. Does anyone have any idea, how to do so?