mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Cleanup: Refactor deleting related sidecar files #2521
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user