fixed fpath
This commit is contained in:
parent
cabc3e94b4
commit
c87309c572
1 changed files with 1 additions and 2 deletions
|
|
@ -185,8 +185,7 @@ func indexHandler(ctx *Context) {
|
||||||
path := ctx.Path()
|
path := ctx.Path()
|
||||||
if fpath, ok = hasTrimPrefix(path, core.IndexPrefix); ok {
|
if fpath, ok = hasTrimPrefix(path, core.IndexPrefix); ok {
|
||||||
err = scanFile(ctx.Srv, fpath)
|
err = scanFile(ctx.Srv, fpath)
|
||||||
}
|
} else if fpath, ok = hasTrimPrefix(path, core.RetagPrefix); ok {
|
||||||
if fpath, ok = hasTrimPrefix(path, core.RetagPrefix); ok {
|
|
||||||
if fpath == "" {
|
if fpath == "" {
|
||||||
go func() {
|
go func() {
|
||||||
err := ctx.Srv.DB.RetagAll()
|
err := ctx.Srv.DB.RetagAll()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue