1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
pub const SEPARATOR: char = '\\';
pub const SEPARATOR_STR: &str = "\\";
pub const ALT_SEPARATOR: char = '/';
pub const ALT_SEPARATOR_STR: &str = "/";
pub const PARENT_DIR: &[u8] = b"..";
pub const PARENT_DIR_STR: &str = "..";
pub const CURRENT_DIR: &[u8] = b".";
pub const CURRENT_DIR_STR: &str = ".";
pub const RESERVED_DEVICE_NAMES: &[&[u8]] = &[
b"CON", b"PRN", b"AUX", b"NUL", b"COM1", b"COM2", b"COM3", b"COM4", b"COM5", b"COM6", b"COM7",
b"COM8", b"COM9", b"COM0", b"LPT1", b"LPT2", b"LPT3", b"LPT4", b"LPT5", b"LPT6", b"LPT7",
b"LPT8", b"LPT9", b"LPT0",
];
pub const RESERVED_DEVICE_NAMES_STR: &[&str] = &[
"CON", "PRN", "AUX", "NUL", "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8",
"COM9", "COM0", "LPT1", "LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", "LPT9", "LPT0",
];
pub const DISALLOWED_FILENAME_BYTES: &[u8] =
&[b'\\', b'/', b':', b'?', b'*', b'"', b'>', b'<', b'|', b'\0'];
pub const DISALLOWED_FILENAME_CHARS: &[char] =
&['\\', '/', ':', '?', '*', '"', '>', '<', '|', '\0'];