manuel-woelker / rust-vfs

A virtual filesystem for Rust
Apache License 2.0
384 stars 44 forks source link

VfsPath: Add 'is_root()` method #44

Closed Property404 closed 1 year ago

Property404 commented 2 years ago

This new method allows checking if a path is root without cloning or constructing anything.

Currently, I believe you have to do either:

Previously, you could also do: