Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Provide (or document) an option to ignore directories #11

@KasparEtter

Description

@KasparEtter

This issue started out as a wish for an enhancement, but, as it turned out, it's also a bug.

When renaming files with rename '*' or rename '**/*', I would like to be able to only rename files but not directories without enforcing any naming conventions. My current workaround is to use rename '**/*.*' because my directories rarely contain periods while all the files I'm interested in typically have a suffix.

Now to the bug part: If you rename with '**/*' files in a subdirectory and the directory itself is also renamed (due to the "limitation" described above), then the command fails on all files in the subdirectory with <filepath> does not exist! Operation skipped.. Ideally, the tool would either rename directories last or keep track of the renames dynamically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions