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:
parent
df1fbbf0d1
commit
8b5d56fe27
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue