diff --git a/file_store/src/cli/bucket.rs b/file_store/src/cli/bucket.rs index a54a5f8a2..247d41718 100644 --- a/file_store/src/cli/bucket.rs +++ b/file_store/src/cli/bucket.rs @@ -53,18 +53,18 @@ pub struct FileFilter { /// Optional start time to look for (inclusive). Defaults to the oldest /// timestamp in the bucket. #[clap(long)] - after: Option, + pub after: Option, /// Optional end time to look for (exclusive). Defaults to the latest /// available timestamp in the bucket. #[clap(long)] - before: Option, + pub before: Option, /// The file type prefix to search for #[clap(long)] - prefix: String, + pub prefix: String, } impl FileFilter { - fn list(&self, store: &FileStore) -> FileInfoStream { + pub fn list(&self, store: &FileStore) -> FileInfoStream { store.list( self.prefix.clone(), self.after.as_ref().map(|dt| Utc.from_utc_datetime(dt)),