8000 Add --skip option (opposite of --force) · Issue #65 · 75lb/renamer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add --skip option (opposite of --force) #65
Open
@75lb

Description

@75lb

Discussed in #64

Originally posted by princebhanwra April 5, 2023
Currently, when we rename, it halts the com 57C6 plete process if the destination filename exists for any case.

$renamer --find "/\(4\).jpg/g" --replace "(2).jpg" --dry-run *
Dry run

ERROR: Unable to rename 03978N026_Y_9K_D(4).jpg to 03978N026_Y_9K_D(2).jpg [file exists]

Run `renamer --help` for usage instructions.

Yes, we have --force parameter to override the destination file. However, there is no option to skip erroneous cases and still continue with the reset.

i.e. we should have something like below
$renamer --find "/\(4\).jpg/g" --replace "(2).jpg" --skip --dry-run *

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0