Skip to content

[Bug]: nextcloudcmd doesn't exclude directory basing on exclude-list #7682

Description

@recolic

⚠️ Before submitting, please verify the following: ⚠️

Bug description

nextcloudcmd --exclude doesn't exclude directory from sync. It still downloads the entire directory from server.
Ref: https://docs.nextcloud.com/desktop/latest/advancedusage.html#exclude-list

Steps to reproduce

  1. Prepare a directory /InstantUpload on Nextcloud server. Put some files inside.
  2. On desktop, create a txt file /tmp/list
InstantUpload
InstantUpload*
InstantUpload**
InstantUpload/*
InstantUpload/**
InstantUpload/*/*
/InstantUpload
/InstantUpload*
/InstantUpload**
/InstantUpload/*
/InstantUpload/**
/InstantUpload/*/*
*InstantUpload*
  1. Run nextcloudcmd --exclude /tmp/list -u USERNAME -p PASSWORD https://my.nextcloud.site
  2. Bug repro. It downloads the entire excluded directory.

Expected behavior

Nothing in InstantUpload directory should be downloaded or uploaded.

Which files are affected by this bug

nextcloudcmd

Operating system

Linux

Which version of the operating system you are running.

Arch Linux (rolling)

Package

Distro package manager

Nextcloud Server version

28.0.5

Nextcloud Desktop Client version

3.15.0

Is this bug present after an update or on a fresh install?

Fresh desktop client install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

Are you using an external user-backend?

  • Default internal user-backend
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Nextcloud Server logs

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions