gitlab.com/evatix-go/core@v1.3.55/internal/fsinternal/GetPathExistStat.go (about)

     1  package fsinternal
     2  
     3  import "os"
     4  
     5  func GetPathExistStat(location string) (fileInfo os.FileInfo, isExist bool, err error) {
     6  	fileInfo, err = os.Stat(location)
     7  	isExist = err == nil || !os.IsNotExist(err)
     8  
     9  	return fileInfo, isExist, err
    10  }