Describe the bug
The following code snippet stopped working with update to 2.3.0 if the directory does not exist:
let path = r"C:\Users\martinlika\Downloads\sample.zip";
ZipArchive::new(File::open(path).unwrap())
.unwrap()
.extract(r"C:\Users\martinlika\Downloads\folder_xyz")
.unwrap();
Fails with:
Running `target\debug\zip-demo.exe`
thread 'main' panicked at src\main.rs:10:10:
called `Result::unwrap()` on an `Err` value: Io(Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." })
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: process didn't exit successfully: `target\debug\zip-demo.exe` (exit code: 101)
Looking at the documentation of the function, there is no requirement mentioned about the existence of the directory.
Describe the bug
The following code snippet stopped working with update to
2.3.0if thedirectorydoes not exist:Fails with:
Looking at the documentation of the function, there is no requirement mentioned about the existence of the
directory.