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