Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: titleformat_text_filter_impl (Read 1103 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

titleformat_text_filter_impl

What is the best way to sanitize a path generated from titleformat script via format_title_nonlocking when one wants to reproduce the path generated by foobars built-in methods? I've tried using titleformat_text_filter_impl_filename_chars.
However, the result differs from the path generated when using said titleformat script with 'File Operations' from the context menu.

In particular, I observed the following differences:
'?' replaced with '_' vs. being removed
'|' replaced with '_' vs. replaced with '-'
'.' in foldernames not being removed vs. being removed

Maybe there is a better method to achieve what I want, but I overlooked it in the SDK?