Add rescan option to overflow dropdown (#1119)

* Make scan options optional
* Add scene rescan
* Add image rescan
* Add gallery rescan
* Add changelog
This commit is contained in:
WithoutPants
2021-02-23 12:56:01 +11:00
committed by GitHub
parent 7fbb92d071
commit f7a8899d90
10 changed files with 107 additions and 12 deletions

View File

@@ -59,6 +59,13 @@ func ZipFilename(zipFilename, filenameInZip string) string {
return zipFilename + zipSeparator + filenameInZip
}
// IsZipPath returns true if the path includes the zip separator byte,
// indicating it is within a zip file.
// TODO - this should be moved to utils
func IsZipPath(p string) bool {
return strings.Contains(p, zipSeparator)
}
type imageReadCloser struct {
src io.ReadCloser
zrc *zip.ReadCloser