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 [*].