Fix bug for empty directories

pull/3/head
Toni Melisma 4 years ago
parent 7a508bd987
commit 6f6bde43f1
No known key found for this signature in database
GPG Key ID: FFF9A7EDDEA34756

@ -4,19 +4,12 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch file",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${file}"
},
{
"name": "Attach to Process",
"type": "go",
"request": "attach",
"mode": "local",
"processId": 3667371
},
"processId": 585791
}
]
}

@ -449,7 +449,7 @@ func createHTML(subdirectories []directory, files []file, sourceRootDir string,
if len(files) > 0 {
rootEscape = getHTMLRootPathRelative(files[0].relPath)
} else {
rootEscape = getHTMLRootPathRelative(subdirectories[0].relPath)
rootEscape = getHTMLRootPathRelative(subdirectories[0].relPath + "/")
}
var data htmlData
@ -963,10 +963,10 @@ func main() {
defer vips.Shutdown()
}
fullsizeImageJobs := make(chan job, 10000)
thumbnailImageJobs := make(chan job, 10000)
fullsizeVideoJobs := make(chan job, 10000)
thumbnailVideoJobs := make(chan job, 10000)
fullsizeImageJobs := make(chan job, 100000)
thumbnailImageJobs := make(chan job, 100000)
fullsizeVideoJobs := make(chan job, 100000)
thumbnailVideoJobs := make(chan job, 100000)
var wg sync.WaitGroup

Loading…
Cancel
Save