package files import ( "errors" "os" ) func IsFileExists(fileLocation string) bool { if _, err := os.Stat(fileLocation); errors.Is(err, os.ErrNotExist) { return false } return true }