Skip to content

Commit eea1d3a

Browse files
committed
prefix, not path
1 parent 96800bf commit eea1d3a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libafl/src/corpus/ondisk.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ where
167167
where
168168
P: AsRef<Path>,
169169
{
170-
Self::with_meta_format_and_path(
170+
Self::with_meta_format_and_prefix(
171171
dir_path.as_ref(),
172172
Some(OnDiskMetadataFormat::JsonPretty),
173173
None,
@@ -181,7 +181,7 @@ where
181181
where
182182
P: AsRef<Path>,
183183
{
184-
Self::with_meta_format_and_path(
184+
Self::with_meta_format_and_prefix(
185185
dir_path.as_ref(),
186186
Some(OnDiskMetadataFormat::JsonPretty),
187187
Some(prefix),
@@ -198,7 +198,7 @@ where
198198
where
199199
P: AsRef<Path>,
200200
{
201-
Self::with_meta_format_and_path(dir_path.as_ref(), Some(meta_format), None)
201+
Self::with_meta_format_and_prefix(dir_path.as_ref(), Some(meta_format), None)
202202
}
203203

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

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

0 commit comments

Comments
 (0)