Handling files with quotes
Posted: Mon Jul 16, 2018 4:17 am
I have a flow that occasionally accepts files with quotation marks in the name. This (obviously) wreaks havoc on scripts and everything else. I thought a good solution would be to use the Rename element to change the quotes to some other string, then revert the name at the end of the flow. The first part works, but when it renames the file back, instead of a quotation mark, it replaces it with an underscore.
I've tried using the "Remember original name" in the first Rename, and replacing the Name Proper with the stored private key, this yielded an underscore.
I tried replacing using a regular expression (", \", and \\") and the replacement doesn't happen.
Any thoughts how I can get the quotation mark back into the filename? I don't have control over the input of the files. Users may submit a file named 5" x 7" print.tif.
I've tried using the "Remember original name" in the first Rename, and replacing the Name Proper with the stored private key, this yielded an underscore.
I tried replacing using a regular expression (", \", and \\") and the replacement doesn't happen.
Any thoughts how I can get the quotation mark back into the filename? I don't have control over the input of the files. Users may submit a file named 5" x 7" print.tif.