typed_path/unix/constants.rs
1/// The primary separator of path components for unix platforms
2pub const SEPARATOR: char = '/';
3
4/// The primary separator of path components for unix platforms
5pub const SEPARATOR_STR: &str = "/";
6
7/// Path component value that represents the parent directory
8pub const PARENT_DIR: &[u8] = b"..";
9
10/// Path component value that represents the parent directory
11pub const PARENT_DIR_STR: &str = "..";
12
13/// Path component value that represents the current directory
14pub const CURRENT_DIR: &[u8] = b".";
15
16/// Path component value that represents the current directory
17pub const CURRENT_DIR_STR: &str = ".";
18
19/// Bytes that are not allowed in file or directory names
20pub const DISALLOWED_FILENAME_BYTES: [u8; 2] = [b'/', b'\0'];
21
22/// Bytes that are not allowed in file or directory names
23pub const DISALLOWED_FILENAME_CHARS: [char; 2] = ['/', '\0'];