Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --skip option (opposite of --force) #65

Open
75lb opened this issue Apr 15, 2023 Discussed in #64 · 0 comments
Open

Add --skip option (opposite of --force) #65

75lb opened this issue Apr 15, 2023 Discussed in #64 · 0 comments

Comments

@75lb
Copy link
Owner

75lb commented Apr 15, 2023

Discussed in #64

Originally posted by princebhanwra April 5, 2023
Currently, when we rename, it halts the complete 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 *

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

No branches or pull requests

1 participant