package app import ( "errors" "github.com/sirupsen/logrus" "haefelfinger.net/piwigo/DirectoriesToAlbums/internal/pkg/localFileStructure" "haefelfinger.net/piwigo/DirectoriesToAlbums/internal/pkg/piwigo/category" ) func synchronizeImages(context *AppContext, fileSystem map[string]*localFileStructure.FilesystemNode, existingCategories map[string]*category.PiwigoCategory) error { imageFiles := getImageList(fileSystem) missingFiles := findMissingImages(imageFiles) uploadImages(missingFiles) return errors.New("synchronizeImages: NOT IMPLEMENTED") } func findMissingImages(imageFiles []string) []string { logrus.Warnln("Finding missing images (NotImplemented)") return nil } func uploadImages(missingFiles []string) { logrus.Warnln("Uploading missing images (NotImplemented)") } func getImageList(fileSystem map[string]*localFileStructure.FilesystemNode) []string { imageFiles := []string{} for _, file := range fileSystem { if !file.IsDir { imageFiles = append(imageFiles, file.Key) } } return imageFiles }