10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 13:53:48 +01:00
QUESTDB_website/layouts/shortcodes/getDataFilesName.html

29 lines
703 B
HTML

<script>
{{- $dir := "/static/data/" }}
{{- $subdir := "abs" }}
{{- $files := readDir (path.Join $dir $subdir )}}
{{- $list := slice }}
function getAbsFilesName(){
{{- range $files }}
{{- $ext := path.Ext .Name}}
{{- if eq $ext ".dat" }}
{{- $list = $list | append (path.Join $subdir .Name) }}
{{- end }}
{{- end }}
var files={{ $list }}
return files
}
{{- $subdir := "fluo" }}
{{- $files := readDir (path.Join $dir $subdir )}}
{{- $list := slice }}
function getFluoFilesName(){
{{- range $files }}
{{- $ext := path.Ext .Name}}
{{- if eq $ext ".dat" }}
{{- $list = $list | append (path.Join $subdir .Name) }}
{{- end }}
{{- end }}
var files={{ $list }}
return files
}
</script>