diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-05-01 09:57:58 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-05-01 10:00:45 -0400 |
commit | 4409199315c5cc22bfba6cc63052a49dbdddfeb1 (patch) | |
tree | cfda2851a0c01cd183643810a6fe0941129f103a /src/fs | |
parent | 297a06ef3a529687e7edb84d5f67376c654b1927 (diff) |
remove methods
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/dirlist.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fs/dirlist.rs b/src/fs/dirlist.rs index 99e686c..adc848a 100644 --- a/src/fs/dirlist.rs +++ b/src/fs/dirlist.rs @@ -46,6 +46,10 @@ impl JoshutoDirList { self.contents.len() } + pub fn is_empty(&self) -> bool { + self.contents.is_empty() + } + pub fn modified(&self) -> bool { let metadata = std::fs::symlink_metadata(self.file_path()); match metadata { |