Filesystem Utilities
Various utilities for the local filesystem.
-
class werkzeug.filesystem.BrokenFilesystemWarning
-
The warning used by Werkzeug to signal a broken filesystem. Will only be used once per runtime.
-
werkzeug.filesystem.get_filesystem_encoding()
-
Returns the filesystem encoding that should be used. Note that this is different from the Python understanding of the filesystem encoding which might be deeply flawed. Do not use this value against Python’s unicode APIs because it might be different. See The Filesystem for the exact behavior.
The concept of a filesystem encoding in generally is not something you should rely on. As such if you ever need to use this function except for writing wrapper code reconsider.
© 2007–2020 Pallets
Licensed under the BSD 3-clause License.
https://werkzeug.palletsprojects.com/en/0.16.x/filesystem/