// Copyright 2022 The Gogs Authors. All rights reserved.// Use of this source code is governed by a MIT-style// license that can be found in the LICENSE file.packageconfimport("embed")//go:embed app.ini **/*varFilesembed.FS// FileNames returns a list of filenames exists in the given direction within// Files. The list includes names of subdirectories.funcFileNames(dirstring)([]string,error){entries,err:=Files.ReadDir(dir)iferr!=nil{returnnil,err}fileNames:=make([]string,0,len(entries))for_,entry:=rangeentries{fileNames=append(fileNames,entry.Name())}returnfileNames,nil}