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:
parent
bebaa45c09
commit
5e1d372503
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user