10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-26 14:23:42 +01:00
QUESTDB_website/layouts/shortcodes/getDataFilesName.html

29 lines
703 B
HTML
Raw Permalink Normal View History

<script>
2020-05-24 12:34:51 +02:00
{{- $dir := "/static/data/" }}
{{- $subdir := "abs" }}
{{- $files := readDir (path.Join $dir $subdir )}}
{{- $list := slice }}
2019-09-26 09:32:03 +02:00
function getAbsFilesName(){
{{- range $files }}
2019-09-17 17:18:45 +02:00
{{- $ext := path.Ext .Name}}
{{- if eq $ext ".dat" }}
2020-05-24 12:34:51 +02:00
{{- $list = $list | append (path.Join $subdir .Name) }}
2019-09-26 09:32:03 +02:00
{{- end }}
{{- end }}
var files={{ $list }}
2019-09-26 09:32:03 +02:00
return files
}
2020-05-24 12:34:51 +02:00
{{- $subdir := "fluo" }}
{{- $files := readDir (path.Join $dir $subdir )}}
2019-09-26 09:32:03 +02:00
{{- $list := slice }}
function getFluoFilesName(){
{{- range $files }}
{{- $ext := path.Ext .Name}}
{{- if eq $ext ".dat" }}
2020-05-24 12:34:51 +02:00
{{- $list = $list | append (path.Join $subdir .Name) }}
2019-09-26 09:32:03 +02:00
{{- end }}
{{- end }}
var files={{ $list }}
2019-09-26 09:32:03 +02:00
return files
}
</script>