prepared some parameters

This commit is contained in:
Philipp Häfelfinger 2019-02-26 00:02:22 +01:00
parent 50e6979b00
commit d80348053e
2 changed files with 5 additions and 3 deletions

View File

@ -44,7 +44,7 @@ func Run() {
logErrorAndExit(err, 5)
}
err = synchronizeImages()
err = synchronizeImages(filesystemNodes, categories)
if err != nil {
logErrorAndExit(err, 6)
}

View File

@ -3,12 +3,14 @@ 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() error {
func synchronizeImages(fileSystem map[string]*localFileStructure.FilesystemNode, existingCategories map[string]*category.PiwigoCategory) error {
findMissingImages()
uploadImages()
return errors.New("NOT IMPLEMENTED")
return errors.New("synchronizeImages: NOT IMPLEMENTED")
}
func findMissingImages() {