From 861426db22ab309c588bfccbcfdfdb0b9280a1c7 Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 12 Jul 2019 12:12:16 +0200 Subject: [PATCH] complete allowed char list --- src/dir.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dir.rs b/src/dir.rs index a189a26..329193f 100644 --- a/src/dir.rs +++ b/src/dir.rs @@ -585,7 +585,7 @@ fn validate_long_name(name: &str) -> io::Result<()> { 'a'...'z' | 'A'...'Z' | '0'...'9' => {}, '\u{80}'...'\u{FFFF}' => {}, '$' | '%' | '\'' | '-' | '_' | '@' | '~' | '`' | '!' | '(' | ')' | '{' | '}' | '.' | ' ' | '+' | ',' - | ';' | '=' | '[' | ']' => {}, + | ';' | '=' | '[' | ']' | '^' | '#' | '&' => {}, _ => return Err(io::Error::new(ErrorKind::Other, "File name contains unsupported characters")), } }