diff --git a/core/host/supervisor.go b/core/host/supervisor.go index 80f34a2b..e6fbd813 100644 --- a/core/host/supervisor.go +++ b/core/host/supervisor.go @@ -517,9 +517,10 @@ func (su *Supervisor) shutdownOnInterrupt(ctx context.Context) { // fileExists tries to report whether a local physical file of "filename" exists. func fileExists(filename string) bool { info, err := os.Stat(filename) - if os.IsNotExist(err) { + if err != nil { return false } + return !info.IsDir() }