Docs.rs
path_helper-0.1.3
path_helper 0.1.3
Permalink
Docs.rs crate page
MIT
Links
Homepage
Repository
crates.io
Source
Owners
share121
Dependencies
mime_guess ^2.0.5
normal
optional
sanitize-filename ^0.6.0
normal
optional
tokio ^1.51.0
normal
optional
Versions
60%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Crate path_helper
path_
helper
0.1.3
All Items
Crate Items
Functions
Crate
path_
helper
Copy item path
Source
Functions
§
gen_
unique_
path
生成一个唯一的路径,若路径已存在则在文件名后加上 (序号)
is_
extension
检查扩展名是否合法
safe_
replace
安全的替换文件内容。会在同目录下创建一个临时文件,落盘完成后再重命名回原文件。
truncate_
filename