Cleanup: Refactor deleting related sidecar files #2521

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2022-07-21 20:23:00 +02:00
parent 22073e5600
commit 4a4c322779
28 changed files with 352 additions and 134 deletions

View File

@@ -15,7 +15,7 @@ import (
// CleanUpCommand registers the cleanup command.
var CleanUpCommand = cli.Command{
Name: "cleanup",
Usage: "Removes orphan index entries and thumbnail files",
Usage: "Removes orphaned index entries, sidecar and thumbnail files",
Flags: cleanUpFlags,
Action: cleanUpAction,
}
@@ -27,7 +27,7 @@ var cleanUpFlags = []cli.Flag{
},
}
// cleanUpAction removes orphan index entries and thumbnails.
// cleanUpAction removes orphaned index entries, sidecar and thumbnail files.
func cleanUpAction(ctx *cli.Context) error {
start := time.Now()