pub struct Options {
pub protect_windows: bool,
pub protect_hfs: bool,
pub protect_ntfs: bool,
}
Expand description
Further specify what to check for in component()
Note that the Default
implementation maximizes safety by enabling all protections.
Fields§
§protect_windows: bool
This flag should be turned on when on Windows, but can be turned on when on other platforms as well to prevent path components that can cause trouble on Windows.
protect_hfs: bool
If true
, protections for the MacOS HFS+ filesystem will be active, checking for
special directories that we should never write while ignoring codepoints just like HFS+ would.
This field is equivalent to core.protectHFS
.
protect_ntfs: bool
If true
, protections for Windows NTFS specific features will be active. This adds special handling
for 8.3
filenames and alternate data streams, both of which could be used to mask the true name of
what would be created on disk.
This field is equivalent to core.protectNTFS
.