Skip to content

--exclude is not working #1337

Closed
Closed
@UnknownSuperficialNight

Description

What version of fd are you using?
[paste the output of fd --version here]

version='fd 8.4.0'

im having issues with syntax or fd is just broken

fd --exclude "/mnt/1.9tbhdd/SteamLibrary" --exclude "/mnt/1.9tbhdd/Back In Time Snapshots" -t f -e mkv -e mp4 --search-path '/mnt/1.9tbhdd' -x bash -c 'echo {}'

the above command will search for files with the extensions .mkv and .mp4 within the directory /mnt/1.9tbhdd, while excluding the two specified directories (/mnt/1.9tbhdd/SteamLibrary and /mnt/1.9tbhdd/Back In Time Snapshots).

The bash -c 'echo {}' is just a example before anyone comments u don't need it it's just here for context

problem im having is /mnt/1.9tbhdd/SteamLibrary is still being found even with the --exclude

i tried ! -path 'Dir' instead of --exclude 'Dir' that wont work with --search-path so i tried --full-path and that does nothing just exits the program

any ideas on what im doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions