]> source.dussan.org Git - nextcloud-server.git/commit
feat(preview): add command to cleanup preview folder add-command-to-cleanup-preview 48537/head
authorThomas Citharel <tcit@tcit.fr>
Wed, 2 Oct 2024 17:00:04 +0000 (19:00 +0200)
committerThomas Citharel <tcit@tcit.fr>
Thu, 3 Oct 2024 11:41:32 +0000 (13:41 +0200)
commitfe0f89c237f9923630ac59ffdef22f80d097e3f5
tree56e0d13366c377ecbece08a561c3b3ccf351c624
parentbfcf4dc4869f047186867bb5c15d0b187692f3bd
feat(preview): add command to cleanup preview folder

When changing preview parameters (size, format, …), one can simply delete the preview folder and run
files:scan-app-data in order to retrigger updated preview recreation because files are absent.

However, that's not possible when using ObjectStorage as primary storage, as there's no concept of
"preview folder".

This command allows to simply delete and recreate the preview folder properly from
Nextcloud, so that the abstraction levels handle all the subfolder & file deleting part.

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
core/Command/Preview/Cleanup.php [new file with mode: 0644]
core/register_command.php
lib/composer/composer/autoload_classmap.php
lib/composer/composer/autoload_static.php
tests/Core/Command/Preview/CleanupTest.php [new file with mode: 0644]