Skip to content

Commit e1ca2cb

Browse files
authored
Recreate the debugger path before downloading the debugger.jar (#126)
Fixes #124 When downloading the debugger-adapter-jar, we need to ensure the path exists.
1 parent 0c67d8c commit e1ca2cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/debugger.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ impl Debugger {
104104
return Ok(path.clone());
105105
}
106106

107+
fs::remove_dir_all(prefix).map_err(|err| err.to_string())?;
108+
fs::create_dir(prefix).map_err(|err| err.to_string())?;
109+
107110
download_file(
108111
JAVA_DEBUG_PLUGIN_FORK_URL,
109112
&path_to_string(jar_path.clone())?,

0 commit comments

Comments
 (0)