ifs 0.1.34

util for write / read file
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub fn unix_path(path: impl Into<String>) -> String {
  let path = path.into();

  #[cfg(target_os = "windows")]
  {
    path.replace("\\", "/")
  }

  #[cfg(not(target_os = "windows"))]
  {
    path
  }
}