nextcloud / nextcloud/recognize

Option to exclude special folders like snapshots or recycle bins

Open
#1,385 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement priority: normal
Dominant language
PHP
Stars
699
Forks
68
Avg merge
1d 4h
Merged PRs (30d)
5

Description

Describe the feature you'd like to request

Hello,

I would like a feature/option that allows me to exclude certain folders from scanning. I'm familiar with the option to create something like .nomedia, but it's not possible to create such a file in some system folders, or in the case of the Recycle Bin, this file is also deleted during auto-pruning.

Describe the solution you'd like

The solution could be to add a checkbox to the settings page to exclude special folders, such as:

  • .recycle
    (used by SMB/CIFS for recycle bin)
  • .zfs
    (contains the ZFS-Snapshots)
  • "custom"
    (with text box)

These masks should be recursive.

Describe alternatives you've considered

For special system folders, such as .zfs, there is no alternative because not even root has write access to create a .nomedia.

(You can hide the .zfs folder from Nextcloud by disabling snapshot visibility, but then file versioning will no longer work properly.)

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 at the settings page and the scanning behavior described in the issue. Trace how .nomedia, .recycle, .zfs, and custom folder masks are handled, then verify that configured exclusions are recursive and remain excluded during scanning and auto-pruning.

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.