We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8bc2af commit 8831657Copy full SHA for 8831657
src/dir.rs
@@ -702,7 +702,7 @@ fn validate_long_name<E: IoError>(name: &str) -> Result<(), Error<E>> {
702
if name.is_empty() {
703
return Err(Error::InvalidFileNameLength);
704
}
705
- if name.len() > 255 {
+ if name.len() > MAX_LONG_NAME_LEN {
706
707
708
// check if there are only valid characters
@@ -732,7 +732,6 @@ pub(crate) struct LfnBuffer {
732
ucs2_units: Vec<u16>,
733
734
735
-#[cfg(feature = "lfn")]
736
const MAX_LONG_NAME_LEN: usize = 255;
737
738
#[cfg(feature = "lfn")]
0 commit comments