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

     1  package fsinternal
     2  
     3  import "os"
     4  
     5  func IsPathExists(location string) bool {
     6  	_, err := os.Stat(location)
     7  
     8  	return err == nil || !os.IsNotExist(err)
     9  }