ui: more layout improvements
This commit is contained in:
parent
e477265690
commit
c8219ed79b
11
main.go
11
main.go
@ -101,17 +101,18 @@ func main() {
|
|||||||
fmt.Println()
|
fmt.Println()
|
||||||
fmt.Printf("Scanning folder '%s'\n", dsConsumedir)
|
fmt.Printf("Scanning folder '%s'\n", dsConsumedir)
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
fmt.Println()
|
|
||||||
|
|
||||||
err = filepath.Walk(dsConsumedir, func(path string, info os.FileInfo, err error) error {
|
err = filepath.Walk(dsConsumedir, func(path string, info os.FileInfo, err error) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if info.IsDir() {
|
if info.IsDir() {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("Checking '%s'\n", path)
|
fmt.Println()
|
||||||
|
fmt.Printf("%s:\n", info.Name())
|
||||||
|
|
||||||
// Check if file exists in Docspell
|
// Check if file exists in Docspell
|
||||||
cmd := exec.Command("dsc", "-f", "json", "file-exists", path)
|
cmd := exec.Command("dsc", "-f", "json", "file-exists", path)
|
||||||
@ -165,9 +166,6 @@ func main() {
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("################# DONE #################")
|
|
||||||
fmt.Println(time.Now().Format(time.RFC1123))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func handleExistingFile(cfg config, fileExistsResponse FileExistsResult) error {
|
func handleExistingFile(cfg config, fileExistsResponse FileExistsResult) error {
|
||||||
@ -201,7 +199,8 @@ func handleExistingFile(cfg config, fileExistsResponse FileExistsResult) error {
|
|||||||
} else if itemDetails.CorrespondingPerson != nil && itemDetails.CorrespondingPerson.Name != "" {
|
} else if itemDetails.CorrespondingPerson != nil && itemDetails.CorrespondingPerson.Name != "" {
|
||||||
corr = itemDetails.CorrespondingPerson.Name
|
corr = itemDetails.CorrespondingPerson.Name
|
||||||
}
|
}
|
||||||
fmt.Printf(" File already exists: '%s @ %s/app/item/%s'\n", itemName, cfg.DocspellURL, itemID)
|
fmt.Printf(" File already exists: %s\n", itemName)
|
||||||
|
fmt.Printf(" URL: %s/app/item/%s\n", cfg.DocspellURL, itemID)
|
||||||
|
|
||||||
state := item.State
|
state := item.State
|
||||||
if state != "confirmed" {
|
if state != "confirmed" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user