prepared some parameters
This commit is contained in:
parent
50e6979b00
commit
d80348053e
@ -44,7 +44,7 @@ func Run() {
|
|||||||
logErrorAndExit(err, 5)
|
logErrorAndExit(err, 5)
|
||||||
}
|
}
|
||||||
|
|
||||||
err = synchronizeImages()
|
err = synchronizeImages(filesystemNodes, categories)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logErrorAndExit(err, 6)
|
logErrorAndExit(err, 6)
|
||||||
}
|
}
|
||||||
|
@ -3,12 +3,14 @@ package app
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"github.com/sirupsen/logrus"
|
"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()
|
findMissingImages()
|
||||||
uploadImages()
|
uploadImages()
|
||||||
return errors.New("NOT IMPLEMENTED")
|
return errors.New("synchronizeImages: NOT IMPLEMENTED")
|
||||||
}
|
}
|
||||||
|
|
||||||
func findMissingImages() {
|
func findMissingImages() {
|
||||||
|
Loading…
Reference in New Issue
Block a user