diff options
author | Nick White <git@njw.name> | 2021-07-27 16:31:46 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2021-07-27 16:31:46 +0100 |
commit | 5310a5e77e945debdc7bd6f149ba87fab13902db (patch) | |
tree | 4e3ed44fce6c360fe454521a750278a6de7c83e4 /internal | |
parent | 02b537b790624057c3f9d0b287a37bf8182847b4 (diff) |
internal/pipeline: Add test to check that hidden files are skipped
Diffstat (limited to 'internal')
-rw-r--r-- | internal/pipeline/put.go | 2 | ||||
-rw-r--r-- | internal/pipeline/testdata/good/.hidden.png | bin | 0 -> 9114 bytes |
2 files changed, 1 insertions, 1 deletions
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 Binary files differnew file mode 100644 index 0000000..77f2d14 --- /dev/null +++ b/internal/pipeline/testdata/good/.hidden.png |