1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-01-07 19:46:53 +00:00

slight optimization for vfs lookups

This commit is contained in:
Alula 2021-10-16 04:45:23 +02:00
parent df1fbbf0d1
commit 8b5d56fe27
No known key found for this signature in database
GPG key ID: 3E00485503A1D8BA

View file

@ -238,6 +238,12 @@ impl PhysicalFS {
.collect();
'citer: for node in components {
let mut tmp = root_path2.clone();
tmp.push(node);
if tmp.exists() {
root_path2 = tmp;
continue;
}
if let Ok(entries) = root_path2.read_dir() {
for entry in entries {