2019-09-14 19:37:18 +02:00
|
|
|
<script>
|
2020-05-24 12:34:51 +02:00
|
|
|
{{- $dir := "/static/data/" }}
|
|
|
|
{{- $subdir := "abs" }}
|
|
|
|
{{- $files := readDir (path.Join $dir $subdir )}}
|
2019-09-14 20:09:54 +02:00
|
|
|
{{- $list := slice }}
|
2019-09-26 09:32:03 +02:00
|
|
|
function getAbsFilesName(){
|
2019-09-14 19:37:18 +02:00
|
|
|
{{- 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 }}
|
2020-05-24 15:22:40 +02:00
|
|
|
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 }}
|
2020-05-24 15:22:40 +02:00
|
|
|
var files={{ $list }}
|
2019-09-26 09:32:03 +02:00
|
|
|
return files
|
|
|
|
}
|
2019-09-14 19:37:18 +02:00
|
|
|
</script>
|