Andrew Barnert wrote: > On May 11, 2020, at 00:40, Steve Jorgensen ste...@stevej.name wrote: > > Proposal: > > Add a new function (possibly os.path.sanitizepart) to sanitize a value for > > use as a single component of a path. In the default case, the value must > > also not be a > > reference to the current or parent directory ("." or "..") and must not > > contain control > > characters. > > “Also” in addition to what? Are there other requirements enforced besides > > these > two that aren’t specified anywhere?
Sorry that was not clear. In addition to ensuring that it it a single part, meaning that it contains no path separators. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/LVJ62W42HQNNQOJXIKS7KLRIOY5IE7JT/ Code of Conduct: http://python.org/psf/codeofconduct/