Skip to content

Conversation

@copyliu
Copy link

@copyliu copyliu commented Jul 31, 2025

Add a replace function for path formatting. It will be useful when defining the output directory. For example, in batch processing, I can use $replace(%directoryname%,C:\Music,D:\ReEncoded) to rewrite the output path to another location while retaining the original directory structure.

@c72578
Copy link
Collaborator

c72578 commented Aug 3, 2025

@copyliu Thanks for your PR. Could you please add a commit body to explain what and why.
See e.g.: https://cbea.ms/git-commit/#why-not-how

It will be useful when defining the output directory. For example,
in batch processing, we can use
`$replace(%directoryname%,C:\Music,D:\ReEncoded)`
to rewrite the output path to another location while retaining the
original directory structure.
@c72578
Copy link
Collaborator

c72578 commented Oct 6, 2025

@copyliu Thanks for adding a description to the PR and commit.

Here is a build of this PR from Github Actions for testing:

CUETools_2.2.6_2025-10-06_git_72a8d1d_Add_replace_function.zip
SHA256: 4eda3ffd6aa8c0b7098df1a2e73268d0f1e912909a15b643a7461fccac51225f

It includes the added replace function.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants