update to fix ingresses
This commit is contained in:
@@ -9,7 +9,6 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"regexp"
|
|
||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
@@ -69,15 +68,15 @@ func isValidFileId(name string) (uint64, bool) {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
func appendFileInfo(info fs.FileInfo, out *CartFileInfo) *CartFileInfo {
|
func appendFileInfo(info fs.FileInfo, out *CartFileInfo) *CartFileInfo {
|
||||||
sys := info.Sys()
|
//sys := info.Sys()
|
||||||
fmt.Printf("sys type %T", sys)
|
//fmt.Printf("sys type %T", sys)
|
||||||
out.Size = info.Size()
|
out.Size = info.Size()
|
||||||
out.Modified = info.ModTime()
|
out.Modified = info.ModTime()
|
||||||
//out.Accessed, _ = AccessTime(info)
|
//out.Accessed, _ = AccessTime(info)
|
||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
|
||||||
var cartFileRe = regexp.MustCompile(`^(\d+)\.events\.log$`)
|
// var cartFileRe = regexp.MustCompile(`^(\d+)\.events\.log$`)
|
||||||
|
|
||||||
func listCartFiles(dir string) ([]*CartFileInfo, error) {
|
func listCartFiles(dir string) ([]*CartFileInfo, error) {
|
||||||
entries, err := os.ReadDir(dir)
|
entries, err := os.ReadDir(dir)
|
||||||
|
|||||||
Reference in New Issue
Block a user