Andrew Barnert wrote: > On May 11, 2020, at 00:40, Steve Jorgensen [email protected] 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 -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/LVJ62W42HQNNQOJXIKS7KLRIOY5IE7JT/ Code of Conduct: http://python.org/psf/codeofconduct/
