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"
|
||||
)
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -5,4 +5,3 @@ type FileNode struct {
|
||||
name string
|
||||
isDir bool
|
||||
}
|
||||
|
||||
|
@ -5,4 +5,3 @@ type PiwigoConfig struct {
|
||||
username string
|
||||
password string
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user