From 620fd620d13a3687015d61f1bf7f3d89cbedf3a5 Mon Sep 17 00:00:00 2001 From: Rico Date: Sun, 4 Jul 2021 23:31:44 +0200 Subject: [PATCH] fix: allow single files as sources fixes #25 --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 91e8d2f..61754bb 100644 --- a/config/config.go +++ b/config/config.go @@ -131,7 +131,7 @@ func (config *Config) validate() error { for _, sourcePath := range unit.Sources { // Each source path must be an existing directory! - if !validatePath(sourcePath, true) { + if !validatePath(sourcePath, false) { log.Printf("The given source path ('%s') does not exist or is no directory!", sourcePath) return bkperrors.ErrCannotAccessSrcDir