lua-path
lua-path copied to clipboard
secure_filename
werkzeug has a very useful function called secure_filename that normalizes a file path to a secure name, very useful when one wants to parse a name into a filename. It would be nice to have it available in lua-path, if it makes sense.
reference: https://github.com/pallets/werkzeug/blob/0f341ea8e5dfb00a6866cf4cbc798c126e063d84/werkzeug/utils.py#L322