Skip to content

exclude and absolute path as argument #1577

Open
@Germano0

Description

@Germano0

Hello, I have noticed that --exclude flag does not accept an absolute path as argument. Indeed

both commmands

$ pwd
/home/user
fd --hidden --exclude /home/user/beta kate
fd --hidden --exclude=/home/user/beta kate

were still searching /home/user/beta. I have noticed that because such path is a SSHFS remote mount and I could notice activity on such path.
To make sure fd was not searching inside such path I had to use the relative name

fd --hidden --exclude beta kate
fd --hidden --exclude=beta kate

I think it would be nice to be able to use absolute path too.
Thank your for your work on fd and have a nice day

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions