Comments on How can I restrict filename characters?
Post
How can I restrict filename characters?
Suppose I want to limit what characters are allowed in filenames. For example, I want file creation to fail if there is a \n
in the name.
Is there a way to enforce this?
If it matters, I prefer an answer for Arch Linux.
What operating system(s) are you interested in answers for?
I'm closing the question for the moment, but if you clarify this, I suspect it will be answerable. Feel free to flag for reopening after editing.
I would have preferred if you hadn't closed it. I don't think closing the question is necessary just to get me to edit and add a small detail. Nevertheless, I did add it.
matthewsnyder I would honestly not consider it a "small detail" whether you are interested in answers for, say, FreeBSD, Windows Subsystem for Linux, Mac OS X, Linux, or Illumos, to name just a few possibilities; especially for a question where answers are likely to touch on deep aspects of the workings of the operating system kernel or file system layer.
Now that you have clarified that you are primarily interested in answers for a distribution using the Linux kernel, I have reopened the question.
Canina Closing the question for this feels unfriendly to me.
I initially assumed that it's obvious the question is about Linux, given the name ("linux") and logo (a penguin) of the site. In fact, I thought you were asking about distro, not OS. In retrospect, that is wrong, because technically the site also covers "unix-like OSes".
Regardless, adding the note is something I can easily do by editing. It's not like you made the comment and I vanished from the site for months. You could have waited a few hours for me to just make the edit, instead of closing and forcing me to ask your permission again for people to be allowed to post an answer.
Of course you're the mod so you make the rules, but I think it's worth pointing out that this "close first, ask later" approach is part of what turns people off StackOverflow in the first place. It is not a good way to attract and retain users. Just my 2 cents...
This community is part of the Codidact network. We have other communities too — take a look!
You can also join us in chat!
Want to advertise this community? Use our templates!
Like what we're doing? Support us! Donate
1 comment thread