danielpclark / faster_path

Faster Pathname handling for Ruby written in Rust
MIT License
782 stars 33 forks source link

Convert Internal String to OsString #145

Closed danielpclark closed 6 years ago

danielpclark commented 6 years ago

Rust provides OsString for compatibility with different operating systems that may use either UTF-8 or UTF-16 characters for their filenames.

OsString should be just as performant as String and should have all the same capabilities in use.

The most specific areas where this should be implemented are ones that read from the file system such as the entries method and the children method.

danielpclark commented 6 years ago

Our Rust directory checks already have Os file names handled. We can deal with the OS specific issues when they come up.