"The filename, directory name, or volume label syntax is incorrect" errors in your flow

If you are dealing with files on your filesystem in your flow, time to time you may encounter this error. If you are moving a file, copying a file or trying to unarchive a zip file.

The first thing you should check is, of course check the path on your filesystem. If everything looks correct, this path may be hiding a non-visible character, that probably comes from a copy-paste operation.

So that if you copy paste this error message into a hex-editor you may see those unvisible characters as below:

 "opening source file: open <U+202A>C:\Users\01\Downloads\534834-REPORT-20220127-123.zip: The filename, directory name, or volume label syntax is incorrect." 

If you fix the path by deleting these characters manually, your flow should start working fine.