diff options
author | Ben S <ogham@bsago.me> | 2015-09-03 18:48:53 +0100 |
---|---|---|
committer | Ben S <ogham@bsago.me> | 2015-09-03 18:48:53 +0100 |
commit | 10fecbd7f6d8b73c2df6d01d049ef4578f934df5 (patch) | |
tree | 6426977f40ce7111497f334cbefe0d75434a1a05 /src/dir.rs | |
parent | a14f1d82f07e7f0b19a696d32183470d51aef356 (diff) |
Details view comments and tidy-ups
Diffstat (limited to 'src/dir.rs')
-rw-r--r-- | src/dir.rs | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -14,8 +14,15 @@ use file::{File, fields}; /// check the existence of surrounding files, then highlight themselves /// accordingly. (See `File#get_source_files`) pub struct Dir { + + /// A vector of the files that have been read from this directory. contents: Vec<PathBuf>, + + /// The path that was read. pub path: PathBuf, + + /// Holds a `Git` object if scanning for Git repositories is switched on, + /// and this directory happens to contain one. git: Option<Git>, } @@ -71,6 +78,7 @@ impl Dir { } +/// Iterator over reading the contents of a directory as `File` objects. pub struct Files<'dir> { inner: SliceIter<'dir, PathBuf>, dir: &'dir Dir, |