Batch export ignores dots in file names
Batch convert is a wonderful and powerful tool. I tried to convert a folder with more than 1,000 mscz files. It worked perfect for all files with only a dot in to separate the file name and the extension.
De converter ignores files with more than 1 dot.
For example: title.mscz will be converted, title version 1.0.mscz will be ignored.
Comments
I'll look into it, but I suspect that there might be an issue with how standard Qt QML FileDialog and FolderListModel deals with this.
See also #104231: Batch Convert plugin does not support Chinese pathnames
Maybe you could try to edit batch_convert.qml and in line 680 replace
var fileBase = fileName.substring(0,fileName.length - fileSuffix.length -1)
with
var fileBase = files.get(i, "fileBaseName")
and check whether this solves the issue for you?
In reply to Maybe you could try to eddit… by Jojo-Schmitz
Thanks for the reply. I found the mentionned code on line 688. I replaced, but sadly, this didn't change anything.
Actually strange things happen after the change. Even if I delete all mid and pdf files the plugin says 'Already up to date' in all cases.
When I check the listbox with the files that are being processed, I can see that the files with multiple dots in the file names are still ignored.
I suspect the Qt QML methods use the 1st dot to determine
fileSuffix
rather than the last, so maybe we need to create some own code to do it properly.I created a new branch (and a PR on github), which should solve it:
https://github.com/Jojo-Schmitz/batch_export/pull/2
Should be fixed in 7ae6a07 and the Mac-specific version f38aa4c
Automatically closed -- issue fixed for 2 weeks with no activity.