summaryrefslogtreecommitdiffstats
path: root/src/interactive/app/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/interactive/app/state.rs')
-rw-r--r--src/interactive/app/state.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/interactive/app/state.rs b/src/interactive/app/state.rs
index aee7542..8762b93 100644
--- a/src/interactive/app/state.rs
+++ b/src/interactive/app/state.rs
@@ -42,10 +42,12 @@ pub struct AppState {
pub scan: Option<FilesystemScan>,
pub stats: TraversalStats,
pub walk_options: WalkOptions,
+ /// The paths used in the initial traversal, at least 1.
+ pub root_paths: Vec<PathBuf>,
}
impl AppState {
- pub fn new(walk_options: WalkOptions) -> Self {
+ pub fn new(walk_options: WalkOptions, input: Vec<PathBuf>) -> Self {
AppState {
navigation: Default::default(),
glob_navigation: None,
@@ -58,6 +60,7 @@ impl AppState {
scan: None,
stats: TraversalStats::default(),
walk_options,
+ root_paths: input,
}
}
}