From eea1d3a030e506670649173bde81cc119a9db9bb Mon Sep 17 00:00:00 2001 From: Addison Crump Date: Wed, 18 Jan 2023 23:59:14 +0100 Subject: [PATCH] prefix, not path --- libafl/src/corpus/ondisk.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libafl/src/corpus/ondisk.rs b/libafl/src/corpus/ondisk.rs index d71ccd92916..c4700b3ad0a 100644 --- a/libafl/src/corpus/ondisk.rs +++ b/libafl/src/corpus/ondisk.rs @@ -167,7 +167,7 @@ where where P: AsRef, { - Self::with_meta_format_and_path( + Self::with_meta_format_and_prefix( dir_path.as_ref(), Some(OnDiskMetadataFormat::JsonPretty), None, @@ -181,7 +181,7 @@ where where P: AsRef, { - Self::with_meta_format_and_path( + Self::with_meta_format_and_prefix( dir_path.as_ref(), Some(OnDiskMetadataFormat::JsonPretty), Some(prefix), @@ -198,7 +198,7 @@ where where P: AsRef, { - 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 @@ -208,14 +208,14 @@ where where P: AsRef, { - 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, prefix: Option,