Skip to main content

is_reserved

Function is_reserved 

Source
pub fn is_reserved(file_name: &str) -> bool
Expand description

Whether file_name is an OKF reserved file (index.md / log.md).

ยงExamples

use coding_tools::okf::is_reserved;

assert!(is_reserved("index.md"));
assert!(is_reserved("log.md"));
assert!(!is_reserved("customers.md"));