solidiquis / erdtree

A modern, cross-platform, multi-threaded, and general purpose filesystem and disk-usage utility that is aware of .gitignore and hidden file rules.
https://crates.io/crates/erdtree
MIT License
2.39k stars 64 forks source link

Windows: '--config' was specified but a `.erdtree.toml` file could not be found #217

Closed adam-frisby closed 1 year ago

adam-frisby commented 1 year ago

I placed a .erdtree.toml file in %APPDATA%\erdtree\, but erd does not seem to find it.

https://github.com/solidiquis/erdtree/blob/ccdb8184232468551e82eacc98857d3393a6d966/src/context/config/toml/mod.rs#L218C29-L218C41

Should that line read strip_suffix rather than strip_prefix?

solidiquis commented 1 year ago

Damn.. yes it should be strip_suffix. Would you like to make a contribution or would you like me to fix it? Once it's merged in I'll make another patch release immediately! It is late for though so I wouldn't be able to get to it at least for the next 10 hours or so.

Edit: strip_suffix