5 ms·
If I ever do anything where I let people name things it's rarely a good idea to NOT lock it down with some restrictions. "Minimum length", "Maximum lenght" at l
by alkonaut 3y ago
If I ever do anything where I let people name things it's rarely a good idea to NOT lock it down with some restrictions. "Minimum length", "Maximum lenght" at least, but anyone who has programmed windows machines for any length of time might also have the scars to remember to do "is a valid file name" too.
Having to escape everything or replace names with stable guids is not a good relpacement for storing \whatever\logs\channelname or whatever the need may be. Especially for systems that are hard bound to windows filesystems or Sharepoint to begin with.
I bet there are apps on other OS:es where you CAN name things a "\0" sequence or "/" and for each such app I imagine there are people who regret making that possible.