incredible-go-core/pkg/io/files/file_exists_checker.go

15 lines
193 B
Go

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