10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 22:03:49 +01:00

Get only files with data extension

This commit is contained in:
Mickaël Véril 2019-09-17 17:18:45 +02:00
parent bebaa45c09
commit 5e1d372503

View File

@ -3,8 +3,11 @@
{{- $list := slice }} {{- $list := slice }}
function getDataFilesName(){ function getDataFilesName(){
{{- range $files }} {{- range $files }}
{{- $ext := path.Ext .Name}}
{{- if eq $ext ".dat" }}
{{- $list = $list | append .Name }} {{- $list = $list | append .Name }}
{{- end }} {{- end }}
{{- end }}
var files=JSON.parse({{ jsonify $list }}) var files=JSON.parse({{ jsonify $list }})
return files return files
} }