formatted / restructured app folder
This commit is contained in:
parent
894a039591
commit
37f6aefe5e
@ -3,7 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
"haefelfinger.net/piwigo/DirectoriesToAlbums/internal/app/DirectoriesToAlbums"
|
"haefelfinger.net/piwigo/DirectoriesToAlbums/internal/app"
|
||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -16,11 +16,11 @@ func ScanLocalFileStructure(path string) map[string]FileNode {
|
|||||||
//TODO: Only allow jpg and png files here
|
//TODO: Only allow jpg and png files here
|
||||||
|
|
||||||
fileMap[p] = FileNode{
|
fileMap[p] = FileNode{
|
||||||
key:p,
|
key: p,
|
||||||
name:info.Name(),
|
name: info.Name(),
|
||||||
isDir:info.IsDir(),
|
isDir: info.IsDir(),
|
||||||
}
|
}
|
||||||
return nil;
|
return nil
|
||||||
})
|
})
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -5,4 +5,3 @@ type FileNode struct {
|
|||||||
name string
|
name string
|
||||||
isDir bool
|
isDir bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,4 +5,3 @@ type PiwigoConfig struct {
|
|||||||
username string
|
username string
|
||||||
password string
|
password string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user