10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 13:53:48 +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,7 +3,10 @@
{{- $list := slice }}
function getDataFilesName(){
{{- range $files }}
{{- $ext := path.Ext .Name}}
{{- if eq $ext ".dat" }}
{{- $list = $list | append .Name }}
{{- end }}
{{- end }}
var files=JSON.parse({{ jsonify $list }})
return files