mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-11-22 13:03:38 +00:00
slight optimization for vfs lookups
This commit is contained in:
parent
df1fbbf0d1
commit
8b5d56fe27
|
|
@ -238,6 +238,12 @@ impl PhysicalFS {
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
'citer: for node in components {
|
'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() {
|
if let Ok(entries) = root_path2.read_dir() {
|
||||||
for entry in entries {
|
for entry in entries {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue