Closed ghost closed 6 years ago
for files, following works
file, err := statikFS.Open(relativeRequestPath) if err == nil { if fileInfo, err := file.Stat(); err == nil { isValidPath = true if !fileInfo.IsDir() { isValidFile = true } } file.Close() }
for files, following works