forked from M-Labs/rust-fatfs
complete allowed char list
This commit is contained in:
parent
0a68d8f0d5
commit
861426db22
@ -585,7 +585,7 @@ fn validate_long_name(name: &str) -> io::Result<()> {
|
|||||||
'a'...'z' | 'A'...'Z' | '0'...'9' => {},
|
'a'...'z' | 'A'...'Z' | '0'...'9' => {},
|
||||||
'\u{80}'...'\u{FFFF}' => {},
|
'\u{80}'...'\u{FFFF}' => {},
|
||||||
'$' | '%' | '\'' | '-' | '_' | '@' | '~' | '`' | '!' | '(' | ')' | '{' | '}' | '.' | ' ' | '+' | ','
|
'$' | '%' | '\'' | '-' | '_' | '@' | '~' | '`' | '!' | '(' | ')' | '{' | '}' | '.' | ' ' | '+' | ','
|
||||||
| ';' | '=' | '[' | ']' => {},
|
| ';' | '=' | '[' | ']' | '^' | '#' | '&' => {},
|
||||||
_ => return Err(io::Error::new(ErrorKind::Other, "File name contains unsupported characters")),
|
_ => return Err(io::Error::new(ErrorKind::Other, "File name contains unsupported characters")),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user