uni-path

Crates.iouni-path
lib.rsuni-path
version1.51.1
sourcesrc
created_at2021-04-17 11:57:10.15368
updated_at2021-04-17 14:34:37.013068
descriptionPlatform-independent path manipulation
homepagehttps://github.com/agerasev/uni-path
repositoryhttps://github.com/agerasev/uni-path.git
max_upload_size
id385721
size86,608
Sam Demin (nthend)

documentation

https://docs.rs/uni-path

README

uni-path

Platform-independent Unix-style path manipulation.

Rationale

Rust's std::path module provides convenient way of path manipulation. It would be nice to use such paths not only with OS file system, but with virtual one (e.g. in-memory fs). Unfortunately, std::path is platform-dependent what means that its behavior is different on different platform.

About

This crate is very similar to std::path because its source code was simply copied from std::path implementation and only the following points were modified:

  • Remove all platform-dependent conditions and leave only Unix code.
  • Use str and String instead of OsStr and OsString.
  • Remove all interactions with OS file system.
Commit count: 4

cargo fmt