Refactor flatten method to be public
This commit is contained in:
parent
581e8a3fff
commit
19db26efa2
|
@ -165,9 +165,8 @@ impl VFolder {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
|
||||||
/// Flatten the folder and its contents into a list of files with full paths.
|
/// Flatten the folder and its contents into a list of files with full paths.
|
||||||
fn flatten(&self) -> Vec<(String, &VFile)> {
|
pub fn flatten(&self) -> Vec<(String, &VFile)> {
|
||||||
let mut files = self
|
let mut files = self
|
||||||
.files
|
.files
|
||||||
.iter()
|
.iter()
|
||||||
|
|
Loading…
Reference in New Issue