Function globset::escape

source ยท
pub fn escape(s: &str) -> String
Expand description

Escape meta-characters within the given glob pattern.

The escaping works by surrounding meta-characters with brackets. For example, * becomes [*].