mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 20:21:38 +00:00
Add ImfsSnapshot::empty_dir() for debugging the Imfs
This commit is contained in:
parent
98519da7d9
commit
f830b024d5
1 changed files with 6 additions and 0 deletions
|
|
@ -23,6 +23,12 @@ impl ImfsSnapshot {
|
||||||
|
|
||||||
ImfsSnapshot::Directory(DirectorySnapshot { children })
|
ImfsSnapshot::Directory(DirectorySnapshot { children })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn empty_dir() -> ImfsSnapshot {
|
||||||
|
ImfsSnapshot::Directory(DirectorySnapshot {
|
||||||
|
children: Default::default(),
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue