Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Add option to exclude files or folders #91

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

klejejs
Copy link
Contributor

@klejejs klejejs commented Jun 1, 2023

This option allows excluding specific files or folders with regex patterns.
Example: immich upload --key HFEJ38DNSDUEG --server http://192.168.1.216:2283/api --exclude 'Thumbs.db|.MTS|.@__thumb' --recursive directory/ would exclude all files and folders that contain Thumbs.db, .MTS, or .@__thumb in their name.

@bo0tzz
Copy link
Member

bo0tzz commented Jun 1, 2023

Instead of (potentially multiple) filtering flags like this built in to the CLI, I would prefer something like --files-from-stdin, so the CLI can be used with standard linux utilities: find . -not -name 'Thumbs.db|.MTS|.@__thumb' | immich --files-from-stdin

@toxic0berliner
Copy link

as I even did a PR with a very similar feature, I must say I'm more in @klejejs , having to resort to other linux tools to use regexp is a pain I believe, I'd much prefer to use an argument and pass it to the cli...

@klaus1k
Copy link

klaus1k commented Jul 31, 2023

Any updates on the ignore/exclude function? It would make importing way easier for me!

@daniele-athome
Copy link

daniele-athome commented Jul 31, 2023

Any updates on the ignore/exclude function? It would make importing way easier for me!

The other (new) cli has an ignore function: https://github.com/immich-app/immich/tree/main/cli

However I'm not sure if that's meant to replace this cli or not.

EDIT: from the project leader on Discord: "the plan is to replacing the old cli with the new one in the core repo. However it is still WIP so we are not releasing and deprecating the old CLI yet"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants