summaryrefslogtreecommitdiff
path: root/internal/pipeline
diff options
context:
space:
mode:
authorNick White <git@njw.name>2021-06-21 18:12:39 +0100
committerNick White <git@njw.name>2021-06-21 18:12:39 +0100
commitb6bb87832710590b4a6376bd2630d85967faff9c (patch)
tree79d94d13954187e59f1687f59d93b461b18257d9 /internal/pipeline
parente1cbbad8b536e3fac4b236d81fa43b9ff3d6ccff (diff)
parent679047f8465b25761ac361a0f41c0b8e814f1928 (diff)
Merge remote-tracking branch 'ssh/master'
Diffstat (limited to 'internal/pipeline')
-rw-r--r--internal/pipeline/put.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/internal/pipeline/put.go b/internal/pipeline/put.go
index 4b38ea5..87e4c99 100644
--- a/internal/pipeline/put.go
+++ b/internal/pipeline/put.go
@@ -1,4 +1,4 @@
-// Copyright 2020 Nick White.
+// Copyright 2021 Nick White.
// Use of this source code is governed by the GPLv3
// license that can be found in the LICENSE file.
@@ -11,6 +11,7 @@ import (
_ "image/png"
"os"
"path/filepath"
+ "strings"
)
// null writer to enable non-verbose logging to be discarded
@@ -26,6 +27,11 @@ func (f fileWalk) Walk(path string, info os.FileInfo, err error) error {
if err != nil {
return err
}
+ // skip files starting with . to prevent automatically generated
+ // files like .DS_Store getting in the way
+ if strings.HasPrefix(filepath.Base(path), ".") {
+ return nil
+ }
if !info.IsDir() {
f <- path
}