func uploadFiles(container string, files []string, c swift.Connection) { wpauswiftcommons.CreatePublicContainer(container, c) for _, e := range files { wpauswiftcommons.UploadFile(container, "", e, c) } }
func uploadContentsInFolder(path string, prefix string, container string, c swift.Connection) { wpauswiftcommons.CreatePublicContainer(container, c) err := filepath.Walk(path, func(subpath string, f os.FileInfo, err error) error { if !f.IsDir() { wpauswiftcommons.UploadFile(container, prefix, subpath, c) } return nil }) if err != nil { println(err.Error()) } }