From 5310a5e77e945debdc7bd6f149ba87fab13902db Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 27 Jul 2021 16:31:46 +0100 Subject: internal/pipeline: Add test to check that hidden files are skipped --- internal/pipeline/put.go | 2 +- internal/pipeline/testdata/good/.hidden.png | Bin 0 -> 9114 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 internal/pipeline/testdata/good/.hidden.png (limited to 'internal') diff --git a/internal/pipeline/put.go b/internal/pipeline/put.go index 7b292b9..c08df53 100644 --- a/internal/pipeline/put.go +++ b/internal/pipeline/put.go @@ -24,7 +24,7 @@ func (w NullWriter) Write(p []byte) (n int, err error) { type fileWalk chan string // Walk sends the path of all files to the channel, with the exception of -// any file or directory which starts with "." +// any file which starts with "." func (f fileWalk) Walk(path string, info os.FileInfo, err error) error { if err != nil { return err diff --git a/internal/pipeline/testdata/good/.hidden.png b/internal/pipeline/testdata/good/.hidden.png new file mode 100644 index 0000000..77f2d14 Binary files /dev/null and b/internal/pipeline/testdata/good/.hidden.png differ -- cgit v1.2.1-24-ge1ad