Filesystem Utilities
Various utilities for the local filesystem.
- class
werkzeug.filesystem.
BrokenFilesystemWarning
- The warning used by Werkzeug to signal a broken filesystem. Will only beused once per runtime.
werkzeug.filesystem.
get_filesystem_encoding
()- Returns the filesystem encoding that should be used. Note that this isdifferent from the Python understanding of the filesystem encoding whichmight be deeply flawed. Do not use this value against Python’s unicode APIsbecause it might be different. See The Filesystem for the exactbehavior.
The concept of a filesystem encoding in generally is not something youshould rely on. As such if you ever need to use this function except forwriting wrapper code reconsider.