Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use std::path::Path;
- fn main() {
- let p1 = Path::new("/home/matt/Downloads/messages/ProductInfo/DateOfManufacture.yaml");
- println!("{:?}", p1.ends_with("yaml"));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement