formatted / restructured app folder
This commit is contained in:
parent
894a039591
commit
37f6aefe5e
@ -3,7 +3,7 @@ package main
|
||||
import (
|
||||
"flag"
|
||||
"github.com/sirupsen/logrus"
|
||||
"haefelfinger.net/piwigo/DirectoriesToAlbums/internal/app/DirectoriesToAlbums"
|
||||
"haefelfinger.net/piwigo/DirectoriesToAlbums/internal/app"
|
||||
"os"
|
||||
)
|
||||
|
||||
|
@ -14,24 +14,24 @@ func ScanLocalDirectories(root string) {
|
||||
logrus.Debugln("filepath.Walk() returned %v\n", fileNodes)
|
||||
}
|
||||
|
||||
func GetAllCategoriesFromServer() {
|
||||
func GetAllCategoriesFromServer() {
|
||||
// get all categories from server and flatten structure to match directory names
|
||||
// 2018/2018 album blah
|
||||
logrus.Warnln("Loading all categories from the server (NotImplemented)")
|
||||
}
|
||||
|
||||
func FindMissingAlbums() {
|
||||
func FindMissingAlbums() {
|
||||
logrus.Warnln("Looking up missing albums (NotImplemented)")
|
||||
}
|
||||
|
||||
func CreateMissingAlbums() {
|
||||
func CreateMissingAlbums() {
|
||||
logrus.Warnln("Creating missing albums (NotImplemented)")
|
||||
}
|
||||
|
||||
func FindMissingImages() {
|
||||
func FindMissingImages() {
|
||||
logrus.Warnln("Finding missing images (NotImplemented)")
|
||||
}
|
||||
|
||||
func UploadImages() {
|
||||
func UploadImages() {
|
||||
logrus.Warnln("Uploading missing images (NotImplemented)")
|
||||
}
|
@ -16,11 +16,11 @@ func ScanLocalFileStructure(path string) map[string]FileNode {
|
||||
//TODO: Only allow jpg and png files here
|
||||
|
||||
fileMap[p] = FileNode{
|
||||
key:p,
|
||||
name:info.Name(),
|
||||
isDir:info.IsDir(),
|
||||
key: p,
|
||||
name: info.Name(),
|
||||
isDir: info.IsDir(),
|
||||
}
|
||||
return nil;
|
||||
return nil
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
|
@ -1,8 +1,7 @@
|
||||
package localFileStructure
|
||||
|
||||
type FileNode struct {
|
||||
key string
|
||||
name string
|
||||
key string
|
||||
name string
|
||||
isDir bool
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,7 @@
|
||||
package authentication
|
||||
|
||||
type PiwigoConfig struct {
|
||||
url string
|
||||
url string
|
||||
username string
|
||||
password string
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
package category
|
||||
|
||||
type PiwigoCategory struct {
|
||||
id int
|
||||
id int
|
||||
name string
|
||||
key string
|
||||
key string
|
||||
}
|
Loading…
Reference in New Issue
Block a user