All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Secrets
Security
Style
Type check
fs::create_dir
fs::create_dir_all is preferable over fs::create_dir as it creates all missing components in the provided path without erroring out.
fs::create_dir_all
fs::create_dir("/some/path");
fs::create_dir_all("/some/path");