1#![allow(dead_code)]
2
3mod path;
4pub use path::*;
5
6#[cfg(feature = "filesystem")]
7#[cfg(feature = "archive-module")]
8pub mod archive;
10
11#[cfg(feature = "location")]
12pub mod location;
14
15#[cfg(feature = "filesystem")]
16pub mod file;
18
19#[cfg(feature = "filesystem")]
20pub mod directory;
22
23#[cfg(feature = "filesystem")]
24pub mod fs_action;
26
27#[cfg(feature = "safe_filename_string")]
28#[inline(always)]
29pub fn filename_safe_string<S: AsRef<str>>(string: S) -> String {
31 filenamify::filenamify(string)
32}
33
34#[test]
35fn test() {
36 if std::env::consts::OS == "windows" {
37 assert!(Path::SPLIT_CHAR == '\\');
38 assert!(Path::NOT_SPLIT_CHAR == '/');
39 }
40
41 else {
42 assert!(Path::SPLIT_CHAR == '/');
43 assert!(Path::NOT_SPLIT_CHAR == '\\');
44 }
45}