flatpak 0.18.1

Flatpak library for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pub fn extension_is_valid(path: &str) -> bool {
    let path = path.to_lowercase();
    is_yaml(&path) || is_json(&path)
}

pub fn is_yaml(path: &str) -> bool {
    path.ends_with(".yaml") || path.ends_with(".yml")
}

pub fn is_json(path: &str) -> bool {
    path.ends_with(".json")
}