Skip to content

Commit

Permalink
FIx writing output to broken folder path
Browse files Browse the repository at this point in the history
  • Loading branch information
FlareFlo committed Feb 23, 2024
1 parent 1c88e84 commit 6cda927
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/subcommands/unpack_raw_blk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ pub fn unpack_raw_blk(args: &ArgMatches) -> Result<()> {
.context("Invalid format specified or missing")?;

let input = Path::new(input);
if input.is_dir() {
bail!("Directories as input are not implemented yet");
}

let mut read = fs::read(input)?;

let zstd_dict = None;
Expand Down Expand Up @@ -58,7 +62,7 @@ pub fn unpack_raw_blk(args: &ArgMatches) -> Result<()> {
_ => input.to_owned(),
};

output_folder.push(input.file_name().unwrap().to_string_lossy().to_string());
//output_folder.push(input.file_name().unwrap().to_string_lossy().to_string());
match format.as_str() {
"Json" => {
output_folder.set_extension("json");
Expand Down

0 comments on commit 6cda927

Please sign in to comment.