gitlab.com/evatix-go/core@v1.3.55/chmodhelper/GetPathExistStatExpand.go (about)

     1  package chmodhelper
     2  
     3  import "os"
     4  
     5  func GetPathExistStatExpand(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  }