Lexiclean

from blog Casey Rodarmor's Blog, | ↗ original
I just published a simple crate that performs lexical path cleaning: lexiclean. Lexical path cleaning simplifies paths by removing ., .., and double separators: //, without querying the filesystem. It is inspired by Go's Clean function, and differs from the Go version by not removing . if that is the only path component left. I implemented this...