Files
steampipe/utils/file.go
kaidaguerre 1fdfc02c34 Startup optimizations. Closes #1186. Closes #1183. Closes #1182
- Update connection management to use file modified time instead of filehash to detect connection changes
- Avoid retrieving schema from database for check and non-interactive query execution
- When retrieving plugin schema, identify the minimum set of schemas we need to fetch - to allow for multiple connections with the same schema
- Update plugin manager to instantiate plugins in parallel
2021-12-07 15:34:14 +00:00

17 lines
206 B
Go

package utils
import (
"os"
"time"
)
func FileModTime(filePath string) (time.Time, error) {
file, err := os.Stat(filePath)
if err != nil {
return time.Time{}, err
}
return file.ModTime(), nil
}