We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The version was bumped to 0.2 so I tried implementing a CaselessFs and found a problem with RamFs during my tests.
This code:
let mut ram = RamFs::new(); ram.touch("/a.txt", b"low a".to_vec()); ram.touch("/A.TXT", b"high a".to_vec()); ram.touch("/b/b.txt", b"low b".to_vec()); ram.touch("/B/B.TXT", b"high b".to_vec()); for entry in ram.entries("/").unwrap() { println!("{:?}", &entry); }
prints this:
Ok(Entry { name: "A.TXT", kind: File }) Ok(Entry { name: "a.txt", kind: File }) Ok(Entry { name: "B", kind: File }) Ok(Entry { name: "b", kind: File })
B and b are directories, not files.
B
b
The text was updated successfully, but these errors were encountered:
Must be this (line 57):
mini-fs/src/index.rs
Lines 51 to 63 in e7887fe
the index.rs test should be updated to account for this
Sorry, something went wrong.
fix index wrongly reporting directory entries as files (#6)
a355169
Should be fixed in 0.2.1
0.2.1
Yup, it's fixed.
No branches or pull requests
The version was bumped to 0.2 so I tried implementing a CaselessFs and found a problem with RamFs during my tests.
This code:
prints this:
B
andb
are directories, not files.The text was updated successfully, but these errors were encountered: