Skip to content

Commit

Permalink
publish filter things for extension
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffgrunewald committed Aug 2, 2023
1 parent 36a3620 commit 4b2c3f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions file_store/src/cli/bucket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<NaiveDateTime>,
pub after: Option<NaiveDateTime>,
/// Optional end time to look for (exclusive). Defaults to the latest
/// available timestamp in the bucket.
#[clap(long)]
before: Option<NaiveDateTime>,
pub before: Option<NaiveDateTime>,
/// 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)),
Expand Down

0 comments on commit 4b2c3f9

Please sign in to comment.