summaryrefslogtreecommitdiff
path: root/internal/pipeline/put.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2021-11-23 11:01:17 +0000
committerNick White <git@njw.name>2021-11-23 11:01:17 +0000
commitecc7e3e9e49d58c9bc22784a96279c4d5ba814a2 (patch)
tree9576b315dab658cdaaa8de19f500a6a344b0c10d /internal/pipeline/put.go
parentd4e90332b1ac2d2cd06ad2fe1c0fcdfc0b690e99 (diff)
gofmt, plus update documentation of recently changed pipeline.UploadImages
Diffstat (limited to 'internal/pipeline/put.go')
-rw-r--r--internal/pipeline/put.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/pipeline/put.go b/internal/pipeline/put.go
index 444735a..1be36f0 100644
--- a/internal/pipeline/put.go
+++ b/internal/pipeline/put.go
@@ -80,7 +80,9 @@ func DetectQueueType(dir string, conn Queuer) string {
// UploadImages uploads all files (except those which start with a ".")
// from a directory (recursively) into conn.WIPStorageId(), prefixed with
-// the given bookname and a slash
+// the given bookname and a slash. It also appends all file names with
+// sequential numbers, like 0001, to ensure they are appropriately named
+// for further processing in the pipeline.
func UploadImages(dir string, bookname string, conn Uploader) error {
files, err := ioutil.ReadDir(dir)
if err != nil {