Skip to content

Commit

Permalink
prefix, not path
Browse files Browse the repository at this point in the history
  • Loading branch information
addisoncrump committed Jan 18, 2023
1 parent 96800bf commit eea1d3a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libafl/src/corpus/ondisk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ where
where
P: AsRef<Path>,
{
Self::with_meta_format_and_path(
Self::with_meta_format_and_prefix(
dir_path.as_ref(),
Some(OnDiskMetadataFormat::JsonPretty),
None,
Expand All @@ -181,7 +181,7 @@ where
where
P: AsRef<Path>,
{
Self::with_meta_format_and_path(
Self::with_meta_format_and_prefix(
dir_path.as_ref(),
Some(OnDiskMetadataFormat::JsonPretty),
Some(prefix),
Expand All @@ -198,7 +198,7 @@ where
where
P: AsRef<Path>,
{
Self::with_meta_format_and_path(dir_path.as_ref(), Some(meta_format), None)
Self::with_meta_format_and_prefix(dir_path.as_ref(), Some(meta_format), None)
}

/// Creates an [`OnDiskCorpus`] that will not store .metadata files
Expand All @@ -208,14 +208,14 @@ where
where
P: AsRef<Path>,
{
Self::with_meta_format_and_path(dir_path.as_ref(), None, None)
Self::with_meta_format_and_prefix(dir_path.as_ref(), None, None)
}

/// Creates a new corpus at the given (non-generic) path with the given optional `meta_format`
/// and `prefix`.
///
/// Will error, if [`std::fs::create_dir_all()`] failed for `dir_path`.
pub fn with_meta_format_and_path(
pub fn with_meta_format_and_prefix(
dir_path: &Path,
meta_format: Option<OnDiskMetadataFormat>,
prefix: Option<String>,
Expand Down

0 comments on commit eea1d3a

Please sign in to comment.