diff --git a/fuzz/fuzz_targets/fuzz_write.rs b/fuzz/fuzz_targets/fuzz_write.rs index c7085ccc..a068ff07 100644 --- a/fuzz/fuzz_targets/fuzz_write.rs +++ b/fuzz/fuzz_targets/fuzz_write.rs @@ -30,7 +30,8 @@ pub struct FileOperation { impl FileOperation { fn referenceable_name(&self) -> &str { - if let WriteDirectory(_) = self.basic { + if let WriteDirectory(_) = self.basic && !self.name.ends_with('\\') + && !self.name.ends_with('/') { self.name + "/" } else { self.name