"Rolf Kalbermatter" rolf.kalbermatter@citeng.com writes:
My tests show that RemoveDirectory just as CreateDirectory rejects all paths which contain one of the wildcards ": * ? " < > |" with error 123 completely independent where that character occurs (not just in the path element which is created). And as far as I can say DeleteFile just as much behaves also this way. So should we attempt to be smarter than Windows in this case?
Yes, because under Unix you can actually create files that contain wildcards, so it should be possible to access them. We just need to prevent the Windows app itself from creating them.