diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-07-09 21:11:14 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-07-09 21:11:14 +0200 |
| commit | 4f0b65f5eab1875edd3d4f547952e49bbc79a54d (patch) | |
| tree | bdd7f82b3c924ce64e2d96f312b3ffd1e86ce7b9 /src/index.rs | |
| parent | afa9d5b588a9f8dcd0e38f0ffd28977d2ae9b60a (diff) | |
add file status and export button
Diffstat (limited to 'src/index.rs')
| -rw-r--r-- | src/index.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/index.rs b/src/index.rs index 36f0ae2..98a174b 100644 --- a/src/index.rs +++ b/src/index.rs @@ -284,4 +284,8 @@ impl Index { file.flush().ok(); }); } + + pub fn num_files(&self) -> usize { + self.filecache.len() + } } |