diff --git a/pkg/io/files/file_exists_checker.go b/pkg/io/files/file_exists_checker.go new file mode 100644 index 0000000..1629370 --- /dev/null +++ b/pkg/io/files/file_exists_checker.go @@ -0,0 +1,14 @@ +package files + +import ( + "errors" + "os" +) + +func IsFileExists(fileLocation string) bool { + if _, err := os.Stat(fileLocation); errors.Is(err, os.ErrNotExist) { + return false + } + + return true +}