1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/// The primary separator of path components for unix platforms
pub const SEPARATOR: char = '/';

/// The primary separator of path components for unix platforms
pub const SEPARATOR_STR: &str = "/";

/// Path component value that represents the parent directory
pub const PARENT_DIR: &[u8] = b"..";

/// Path component value that represents the parent directory
pub const PARENT_DIR_STR: &str = "..";

/// Path component value that represents the current directory
pub const CURRENT_DIR: &[u8] = b".";

/// Path component value that represents the current directory
pub const CURRENT_DIR_STR: &str = ".";

/// Bytes that are not allowed in file or directory names
pub const DISALLOWED_FILENAME_BYTES: [u8; 2] = [b'/', b'\0'];

/// Bytes that are not allowed in file or directory names
pub const DISALLOWED_FILENAME_CHARS: [char; 2] = ['/', '\0'];