AddAnyFile icon indicating copy to clipboard operation
AddAnyFile copied to clipboard

Consider using a regex to test for invalid file paths

Open Pepsi1x1 opened this issue 4 years ago • 0 comments

Hi Mads,

Thanks for the stream! As discussed consider using the following regex to test for the existence of system reserved names in directory names.

@"^(?!^(PRN|AUX|CLOCK$|NUL|CON|COM\d|LPT\d|..)(..+)?$)[^\x00-\x1f\?:"";|/]+$";

Pepsi1x1 avatar Sep 25 '20 21:09 Pepsi1x1