Skip to content

Commit

Permalink
fmt & update to 0.2.15
Browse files Browse the repository at this point in the history
  • Loading branch information
wsyxbcl committed Sep 12, 2024
1 parent 1f3b13f commit 5b1da8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "maze-serval"
description = "Serval helps you prepare data for Maze and Trapper"
repository = "https://github.com/wsyxbcl/Serval"
authors = ["wsyxbcl <[email protected]>"]
version = "0.2.14"
version = "0.2.15"
edition = "2021"
license = "GPL-3.0-or-later"
keywords = ["camtrap", "camera-trap"]
Expand Down
6 changes: 3 additions & 3 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ pub fn resources_align(
let mut current_parent = resource.parent();
while let Some(parent) = current_parent {
if parent.to_str() == deploy_path {
break;
break;
}
parent_names.push(parent.file_name().unwrap().to_os_string());
current_parent = parent.parent();
Expand All @@ -174,10 +174,10 @@ pub fn resources_align(
resource_name.push(resource.file_name().unwrap());

output_path.push(output_dir.join(resource_name));

if !dry_run {
let pb = indicatif::ProgressBar::new(num_resource as u64);

if move_mode {
fs::rename(resource, output_path)?;
pb.inc(1);
Expand Down

0 comments on commit 5b1da8f

Please sign in to comment.