admin wrote:What about:
- if the pattern contains no wildcards: it's treated against the extension (ensuring backward compatibility)
- elseif the pattern contains the character ":" then it's treated against the full path. Should work...
- else it's treated against the file name.
hmm.. yeah, that sounds right. I just think I would switch the two first :
- if the pattern contains the character ":" then it's treated against the full path
- elseif the pattern contains no wildcards: it's treated against the extension (ensuring backward compatibility)
- else (no ":" but wildchars) it's treated against the file name.
Just to allow to use a full path/name without wildchars.
The only question is, should relative syntax be supported here as well. Because it might make sense to use it, and then "?:" syntax would work (since there's a ":") and we could use "*:" to specify any drive (not the one from where XY is running)
But the problem is with the other syntax, relative paths (eg: "..\Folder" or "Scripts\*.xys")
So maybe it shouldn't be based on ":" but on ""
That would give us:
- if the pattern contains the character "" then it's treated against the full path (relative syntax supported)
- elseif the pattern contains no wildcards: it's treated against the extension (ensuring backward compatibility)
- else (no "" but wildchars) it's treated against the file name.