v2 #2
1 changed files with 1 additions and 1 deletions
commit
285a3236bf
|
|
@ -51,7 +51,7 @@ fn main() -> Result<()> {
|
|||
}
|
||||
if path.is_dir() {
|
||||
// we actually want to write out all the directory contents
|
||||
archive.append_dir_all("", path).unwrap();
|
||||
archive.append_dir_all(&path, &path).unwrap();
|
||||
} else if path.is_file() {
|
||||
// rest of the file types are handled by the existing inner code
|
||||
archive.append_path(path).unwrap();
|
||||
|
|
|
|||
Loading…
Reference in a new issue