nextcloud / nextcloud/previewgenerator

Skip hidden files/folders by default

Open
#157 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
PHP
Stars
520
Forks
55
PR merge metrics
No merged PRs in 30d

Description

During preview generation I noticed that it took quite long for the folder pictures/.lrt/visual which is used by Adobe Lightroom to store preview files of pictures. Generating previews of previews makes less sense for sure, but even normal hidden folders and files are not visible by default in Nextcloud.

Therefore it would be great if an option exists to in- or exclude those files and folders from preview generation.

Ideally that option would be set to exclude hidden items by default and may be specified in config.php as you can already do it for the preview size and the scale factor:

https://docs.nextcloud.com/server/stable/admin_manual/configuration_files/previews_configuration.html?highlight=generate%20all#parameters

Greetings,
Daniel

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the preview-generation entry point and the existing preview configuration in config.php. Check how hidden files and folders such as pictures/.lrt/visual are discovered, then add coverage for default exclusion and configurable inclusion or exclusion; done means hidden items are skipped by default and the option is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.