Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/vendor/github.com/joncrlsn/dque/util.go

23 lines
364 B

package dque
import (
"os"
)
// dirExists returns true or false
func dirExists(path string) bool {
fileInfo, err := os.Stat(path)
if err == nil {
return fileInfo.IsDir()
}
return false
}
// fileExists returns true or false
func fileExists(path string) bool {
fileInfo, err := os.Stat(path)
if err == nil {
return !fileInfo.IsDir()
}
return false
}