Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (8 sloc) 215 Bytes
<?php
$files = array();
for ($dir = opendir('./files'); $file = readdir($dir);) {
if ($file{0} == '.') continue;
$files[] = "{path: '/wwg/my/files/$file', name: '$file'}";
}
echo '[' . join(',', $files) . ']';
?>